add management of items !
This commit is contained in:
12
app/models/wow_item.rb
Normal file
12
app/models/wow_item.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class WowItem < ApplicationRecord
|
||||
extend Mobility
|
||||
translates :name
|
||||
|
||||
belongs_to :wow_item_class
|
||||
belongs_to :wow_item_sub_class
|
||||
belongs_to :wow_item_inventory_type
|
||||
belongs_to :wow_item_quality
|
||||
|
||||
validates :name, presence: true
|
||||
validates :item_id, presence: true, uniqueness: true
|
||||
end
|
||||
Reference in New Issue
Block a user