add management of items !
This commit is contained in:
9
app/models/wow_item_sub_class.rb
Normal file
9
app/models/wow_item_sub_class.rb
Normal 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
|
||||
Reference in New Issue
Block a user