class Game < ApplicationRecord has_many :runs, dependent: :restrict_with_error validates_presence_of :title end