From 23178917e0d415ac17aab9a8077a124c3254f124 Mon Sep 17 00:00:00 2001 From: David Gay Date: Mon, 3 May 2021 18:29:04 -0400 Subject: Add Locations --- db/migrate/20210503221405_create_locations.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 db/migrate/20210503221405_create_locations.rb (limited to 'db/migrate') 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 -- cgit v1.2.3