From e37402ff309311a14d7dd666d0d8b29517504017 Mon Sep 17 00:00:00 2001 From: David Gay Date: Sun, 6 Jun 2021 19:06:46 -0400 Subject: Leviathans --- db/migrate/20210606215806_create_monster_spawns.rb | 10 ++++++++++ db/migrate/20210606215818_create_monster_spawn_combats.rb | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 db/migrate/20210606215806_create_monster_spawns.rb create mode 100644 db/migrate/20210606215818_create_monster_spawn_combats.rb (limited to 'db/migrate') diff --git a/db/migrate/20210606215806_create_monster_spawns.rb b/db/migrate/20210606215806_create_monster_spawns.rb new file mode 100644 index 0000000..96ccefe --- /dev/null +++ b/db/migrate/20210606215806_create_monster_spawns.rb @@ -0,0 +1,10 @@ +class CreateMonsterSpawns < ActiveRecord::Migration[6.1] + def change + create_table :monster_spawns do |t| + t.references :monster, null: false, foreign_key: true + t.references :location, null: false, foreign_key: true + + t.timestamps + end + end +end diff --git a/db/migrate/20210606215818_create_monster_spawn_combats.rb b/db/migrate/20210606215818_create_monster_spawn_combats.rb new file mode 100644 index 0000000..a2dd894 --- /dev/null +++ b/db/migrate/20210606215818_create_monster_spawn_combats.rb @@ -0,0 +1,11 @@ +class CreateMonsterSpawnCombats < ActiveRecord::Migration[6.1] + def change + create_table :monster_spawn_combats do |t| + t.references :monster_spawn, null: false, foreign_key: true + t.references :character, null: false, foreign_key: true + t.integer :hp_lost + + t.timestamps + end + end +end -- cgit v1.2.3