summaryrefslogtreecommitdiff
path: root/db/migrate/20210518214817_create_built_hearth_amenities.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20210518214817_create_built_hearth_amenities.rb')
-rw-r--r--db/migrate/20210518214817_create_built_hearth_amenities.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20210518214817_create_built_hearth_amenities.rb b/db/migrate/20210518214817_create_built_hearth_amenities.rb
new file mode 100644
index 0000000..d9c1c5d
--- /dev/null
+++ b/db/migrate/20210518214817_create_built_hearth_amenities.rb
@@ -0,0 +1,11 @@
+class CreateBuiltHearthAmenities < ActiveRecord::Migration[6.1]
+ def change
+ create_table :built_hearth_amenities do |t|
+ t.references :hearth, null: false, foreign_key: true
+ t.references :hearth_amenity, null: false, foreign_key: true
+ t.integer :level
+
+ t.timestamps
+ end
+ end
+end