class Combat < ApplicationRecord enum :result, [:draw, :domination] belongs_to :left_fighter, class_name: 'Creature' belongs_to :right_fighter, class_name: 'Creature' belongs_to :winner, class_name: 'Creature' end