diff options
author | David Gay <david@davidgay.org> | 2021-05-03 18:29:04 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-03 18:29:04 -0400 |
commit | 23178917e0d415ac17aab9a8077a124c3254f124 (patch) | |
tree | 26c60ed872b382b0610e050ea19a921879d9d49a /db/migrate | |
parent | 9729982e242b125579a996ff59579a906984c476 (diff) |
Add Locations
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20210503221405_create_locations.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20210503221405_create_locations.rb b/db/migrate/20210503221405_create_locations.rb new file mode 100644 index 0000000..83bd143 --- /dev/null +++ b/db/migrate/20210503221405_create_locations.rb @@ -0,0 +1,15 @@ +class CreateLocations < ActiveRecord::Migration[6.1] + def change + create_table :locations do |t| + t.string :gid + t.string :name + t.text :description + t.jsonb :whatnot + + t.timestamps + end + + add_index :locations, :gid + add_reference :activities, :location + end +end |