summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-06-02 22:15:02 -0400
committerDavid Gay <david@davidgay.org>2021-06-02 22:15:02 -0400
commit4c96893a114059dc4e748307c6d046ec1faa778f (patch)
tree10e3af95e7a3749e6bd0d1ab63fffebf5b567258 /db/migrate
parent6ec57509c6f1d44fb80a1cb2ae020b8a033dd370 (diff)
Magiculture
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20210602225942_create_hearth_plantings.rb10
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