13 lines
303 B
Ruby
13 lines
303 B
Ruby
# frozen_string_literal: true
|
|
|
|
class WowCreature < ApplicationRecord
|
|
extend Mobility
|
|
translates :name
|
|
|
|
belongs_to :wow_creature_family, optional: true
|
|
belongs_to :wow_creature_type, optional: true
|
|
|
|
validates :name, presence: true
|
|
validates :creature_id, presence: true, uniqueness: true
|
|
end
|