improve achievement management and and views

This commit is contained in:
2021-08-24 20:53:32 +02:00
parent 39ebeea387
commit 2be44a89b8
18 changed files with 197 additions and 8 deletions

View File

@@ -11,6 +11,7 @@ class WowAchievementCriterium < ApplicationRecord
dependent: :destroy,
inverse_of: :parent_criterium
belongs_to :parent_criterium, class_name: 'WowAchievementCriterium', optional: true
has_many :completed_wow_achievement_criteria, dependent: :destroy
has_many :wow_characters, through: :completed_wow_achievement_criteria