diff options
Diffstat (limited to 'db/migrate/20210518214713_create_hearth_amenities.rb')
-rw-r--r-- | db/migrate/20210518214713_create_hearth_amenities.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20210518214713_create_hearth_amenities.rb b/db/migrate/20210518214713_create_hearth_amenities.rb new file mode 100644 index 0000000..dbbea6d --- /dev/null +++ b/db/migrate/20210518214713_create_hearth_amenities.rb @@ -0,0 +1,13 @@ +class CreateHearthAmenities < ActiveRecord::Migration[6.1] + def change + create_table :hearth_amenities do |t| + t.string :gid + t.string :name + t.text :description + t.jsonb :build_data + + t.timestamps + end + add_index :hearth_amenities, :gid + end +end |