diff options
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20130624041207_add_location_to_user.rb | 7 | ||||
| -rw-r--r-- | db/schema.rb | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20130624041207_add_location_to_user.rb b/db/migrate/20130624041207_add_location_to_user.rb new file mode 100644 index 0000000..9cd333c --- /dev/null +++ b/db/migrate/20130624041207_add_location_to_user.rb @@ -0,0 +1,7 @@ +class AddLocationToUser < ActiveRecord::Migration + def change + add_column :users, :postal_code, :string + add_column :users, :latitude, :float + add_column :users, :longitude, :float + end +end diff --git a/db/schema.rb b/db/schema.rb index 0fa3137..d95f634 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -104,6 +104,9 @@ ActiveRecord::Schema.define(:version => 20130624045542) do t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.string "name" + t.string "postal_code" + t.float "latitude" + t.float "longitude" end add_index "users", ["email"], :name => "index_users_on_email", :unique => true |
