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

@@ -19,4 +19,6 @@ class WowAchievement < ApplicationRecord
validates :name, presence: true
validates :achievement_id, presence: true, uniqueness: true
scope :base_achievements, -> { where(prerequisite_achievement: nil) }
end