13 lines
285 B
Ruby
13 lines
285 B
Ruby
# frozen_string_literal: true
|
|
|
|
class WowGuild < ApplicationRecord
|
|
extend Mobility
|
|
translates :translated_faction
|
|
|
|
belongs_to :wow_realm
|
|
has_many :wow_characters, dependent: :nullify
|
|
|
|
validates :name, presence: true
|
|
validates :guild_id, presence: true, uniqueness: true
|
|
end
|