add covenant

This commit is contained in:
2021-05-30 17:49:54 +02:00
parent d0e5824d40
commit 5b3da08707
29 changed files with 157 additions and 9 deletions

View File

@@ -0,0 +1,10 @@
class WowCovenant < ApplicationRecord
extend Mobility
translates :name, :description
has_many :wow_covenant_progresses, dependent: :nullify
has_many :wow_characters, through: :wow_covenant_progresses
validates :name, presence: true
validates :covenant_id, presence: true, uniqueness: true
end