diff options
author | David Gay <david@davidgay.org> | 2021-06-15 21:52:49 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-15 21:54:32 -0400 |
commit | 637adf2963f174c3e3e3d6cf9efbff314e306f3e (patch) | |
tree | 4e4812f66848a751b12adda81f7c500c0a689116 /db/migrate | |
parent | f637f622af2d9b891271344ef23402c41419b3fe (diff) |
MonsterKills and bestiary view
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20210616014044_create_monster_kills.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20210616014044_create_monster_kills.rb b/db/migrate/20210616014044_create_monster_kills.rb new file mode 100644 index 0000000..b61908d --- /dev/null +++ b/db/migrate/20210616014044_create_monster_kills.rb @@ -0,0 +1,11 @@ +class CreateMonsterKills < ActiveRecord::Migration[6.1] + def change + create_table :monster_kills do |t| + t.references :monster, null: false, foreign_key: true + t.references :character, null: false, foreign_key: true + t.bigint :quantity + + t.timestamps + end + end +end |