summaryrefslogtreecommitdiff
path: root/db/migrate/20210518002820_create_hearths.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-18 18:16:04 -0400
committerDavid Gay <david@davidgay.org>2021-05-18 18:16:04 -0400
commit4a6c06eb681575dbf1ee58d3b1f667e79051b1e2 (patch)
tree194a555305ec8c12271160a2c7ccf3087f16cd41 /db/migrate/20210518002820_create_hearths.rb
parent25c499ae942086b460b886e3d79dc5a55e5f1214 (diff)
Hearths, HearthAmenities, and BuiltHearthAmenities
Diffstat (limited to 'db/migrate/20210518002820_create_hearths.rb')
-rw-r--r--db/migrate/20210518002820_create_hearths.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20210518002820_create_hearths.rb b/db/migrate/20210518002820_create_hearths.rb
new file mode 100644
index 0000000..051a2e7
--- /dev/null
+++ b/db/migrate/20210518002820_create_hearths.rb
@@ -0,0 +1,9 @@
+class CreateHearths < ActiveRecord::Migration[6.1]
+ def change
+ create_table :hearths do |t|
+ t.references :character, null: false, foreign_key: true
+
+ t.timestamps
+ end
+ end
+end