diff options
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20210602225942_create_hearth_plantings.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20210602225942_create_hearth_plantings.rb b/db/migrate/20210602225942_create_hearth_plantings.rb new file mode 100644 index 0000000..b5d0adb --- /dev/null +++ b/db/migrate/20210602225942_create_hearth_plantings.rb @@ -0,0 +1,10 @@ +class CreateHearthPlantings < ActiveRecord::Migration[6.1] + def change + create_table :hearth_plantings do |t| + t.references :hearth, null: false, foreign_key: true + t.references :item, null: false, foreign_key: true + + t.timestamps + end + end +end |