changed type from float to real

This commit is contained in:
Mark Ryall
2012-09-23 19:31:55 +10:00
parent f27206fefb
commit 5b65713e91
2 changed files with 4 additions and 28 deletions
@@ -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
View File
@@ -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"