blob: 4b89120cbfaf05cd0067cebc43dc3d99f9ece16d (
plain)
1
2
3
4
5
6
7
8
|
class AddStartingHpToMonsterSpawns < ActiveRecord::Migration[6.1]
def change
add_column :monster_spawns, :starting_hp, :integer
MonsterSpawn.all.each do |ms|
ms.update(starting_hp: ms.monster.max_hp)
end
end
end
|