add management of items !

This commit is contained in:
2021-05-29 00:10:32 +02:00
parent f8c539bb87
commit f4f3862c74
24 changed files with 373 additions and 7 deletions

View File

@@ -0,0 +1,9 @@
class WowItemSubClass < ApplicationRecord
extend Mobility
translates :display_name, :verbose_name
belongs_to :wow_item_class
has_many :wow_items, dependent: :destroy
validates :item_sub_class_id, presence: true, uniqueness: { scope: :wow_item_class }
end