class MonsterSpawnCombat < ApplicationRecord belongs_to :monster_spawn belongs_to :character validates :hp_lost, numericality: { greater_than_or_equal_to: 0, only_integer: true } end