diff options
| author | mo khan <mo@mokhan.ca> | 2014-02-21 22:36:24 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-02-21 22:36:24 -0700 |
| commit | e7902a5ecf47391c50290c06c2df06732a5c6fd0 (patch) | |
| tree | d1f5537104409335450dee659561774e912e8701 /db | |
| parent | b50a9b42f1cddc78f75f75913f39bd19fbf4d8d5 (diff) | |
create location model.
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20140222053352_create_locations.rb | 11 | ||||
| -rw-r--r-- | db/schema.rb | 11 |
2 files changed, 21 insertions, 1 deletions
diff --git a/db/migrate/20140222053352_create_locations.rb b/db/migrate/20140222053352_create_locations.rb new file mode 100644 index 0000000..c5faa93 --- /dev/null +++ b/db/migrate/20140222053352_create_locations.rb @@ -0,0 +1,11 @@ +class CreateLocations < ActiveRecord::Migration + def change + create_table :locations do |t| + t.uuid :license_id + t.float :latitude + t.float :longitude + t.string :township + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb index d6e0d44..f34633a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20140222052902) do +ActiveRecord::Schema.define(version: 20140222053352) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -33,6 +33,15 @@ ActiveRecord::Schema.define(version: 20140222052902) do t.integer "well_type_id" end + create_table "locations", force: true do |t| + t.uuid "license_id" + t.float "latitude" + t.float "longitude" + t.string "township" + t.datetime "created_at" + t.datetime "updated_at" + end + create_table "well_types", force: true do |t| t.string "name" t.string "acronym" |
