initial rebuild from v1

This commit is contained in:
2021-04-22 22:31:23 +02:00
commit cc8cf4954d
152 changed files with 11559 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
class WowCharacter < ApplicationRecord
extend Mobility
translates :translated_faction, :translated_gender
belongs_to :user
belongs_to :wow_realm
belongs_to :wow_class
belongs_to :wow_race
belongs_to :wow_character_title, optional: true
has_one :wow_character_medium, dependent: :nullify
validates :name, presence: true
validates :character_id, presence: true, uniqueness: true
end