diff options
| author | mo khan <mo@mokhan.ca> | 2013-06-23 23:10:05 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-06-23 23:10:05 -0600 |
| commit | d50c5834cf7ae1cbb22423f2a214956c97bbeaea (patch) | |
| tree | d03256695bebc37a689c1fc57df768c0f8adce33 /db | |
| parent | a2b743102f1aa00541cff0da596c584574faf9e8 (diff) | |
| parent | e3835d71e4bb3a530b06e4f459ea9643adbe9f6c (diff) | |
merge with mendicantmain
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 |
