diff options
author | David Gay <david@davidgay.org> | 2021-05-22 18:10:19 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-22 18:10:19 -0400 |
commit | 44facc2e567eb3c045ce082428f42276e45b0202 (patch) | |
tree | 0b302bfd60a6faae698a63e68e3e1a5bdb9e16c2 /db/migrate | |
parent | 38f3a39221869483e3468e9f4d8cab5450a70f89 (diff) |
Monsters and basic combat
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20210522194937_add_wounds_to_characters.rb | 5 | ||||
-rw-r--r-- | db/migrate/20210522201259_create_monsters.rb | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20210522194937_add_wounds_to_characters.rb b/db/migrate/20210522194937_add_wounds_to_characters.rb new file mode 100644 index 0000000..be56e29 --- /dev/null +++ b/db/migrate/20210522194937_add_wounds_to_characters.rb @@ -0,0 +1,5 @@ +class AddWoundsToCharacters < ActiveRecord::Migration[6.1] + def change + add_column :characters, :wounds, :integer + end +end diff --git a/db/migrate/20210522201259_create_monsters.rb b/db/migrate/20210522201259_create_monsters.rb new file mode 100644 index 0000000..39f0a1a --- /dev/null +++ b/db/migrate/20210522201259_create_monsters.rb @@ -0,0 +1,12 @@ +class CreateMonsters < ActiveRecord::Migration[6.1] + def change + create_table :monsters do |t| + t.string :gid + t.string :name + t.text :description + t.jsonb :whatnot + + t.timestamps + end + end +end |