summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-21 22:40:59 -0700
committermo khan <mo@mokhan.ca>2014-02-21 22:40:59 -0700
commitbf5c3435155c0ee9c2172bea6b6b3c5dec2c2463 (patch)
tree3f26241dd6bdcaa25d7b4c85d984230cd360e5b2 /db/migrate
parente7902a5ecf47391c50290c06c2df06732a5c6fd0 (diff)
use a uuid as the primary key for locations.
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20140222053352_create_locations.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20140222053352_create_locations.rb b/db/migrate/20140222053352_create_locations.rb
index c5faa93..fb2bca2 100644
--- a/db/migrate/20140222053352_create_locations.rb
+++ b/db/migrate/20140222053352_create_locations.rb
@@ -1,6 +1,6 @@
class CreateLocations < ActiveRecord::Migration
def change
- create_table :locations do |t|
+ create_table :locations, id: :uuid do |t|
t.uuid :license_id
t.float :latitude
t.float :longitude