mirror of
https://github.com/wahyd4/ocelots.git
synced 2026-08-09 04:56:21 +10:00
changed type from float to real
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class AddLatLngToPerson < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :people, :lat, :float
|
||||
add_column :people, :lng, :float
|
||||
add_column :people, :lat, :real
|
||||
add_column :people, :lng, :real
|
||||
end
|
||||
end
|
||||
|
||||
+2
-26
@@ -32,32 +32,8 @@ ActiveRecord::Schema.define(:version => 20120923063400) do
|
||||
t.string "pending_approval_token"
|
||||
end
|
||||
|
||||
create_table "people", :force => true do |t|
|
||||
t.string "account"
|
||||
t.string "full_name"
|
||||
t.string "chinese_name"
|
||||
t.string "preferred_name"
|
||||
t.string "email"
|
||||
t.string "pinyin_name"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
t.string "photo_file_name"
|
||||
t.string "photo_content_type"
|
||||
t.integer "photo_file_size"
|
||||
t.string "persona_id"
|
||||
t.integer "track"
|
||||
t.string "secret"
|
||||
t.string "phone"
|
||||
t.string "twitter"
|
||||
t.string "facebook"
|
||||
t.string "weibo"
|
||||
t.string "appnet"
|
||||
t.string "github"
|
||||
t.string "url"
|
||||
t.string "auth_token"
|
||||
t.float "lat"
|
||||
t.float "lng"
|
||||
end
|
||||
# Could not dump table "people" because of following StandardError
|
||||
# Unknown type 'real' for column 'lat'
|
||||
|
||||
create_table "teams", :force => true do |t|
|
||||
t.string "name"
|
||||
|
||||
Reference in New Issue
Block a user