summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-21 22:36:24 -0700
committermo khan <mo@mokhan.ca>2014-02-21 22:36:24 -0700
commite7902a5ecf47391c50290c06c2df06732a5c6fd0 (patch)
treed1f5537104409335450dee659561774e912e8701 /db/migrate
parentb50a9b42f1cddc78f75f75913f39bd19fbf4d8d5 (diff)
create location model.
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20140222053352_create_locations.rb11
1 files changed, 11 insertions, 0 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