added brands
This commit is contained in:
3
front-api/models/brand.rb
Normal file
3
front-api/models/brand.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class Brand < ActiveRecord::Base
|
||||
has_many :items
|
||||
end
|
||||
@@ -1,5 +1,6 @@
|
||||
class Item < ActiveRecord::Base
|
||||
belongs_to :unit
|
||||
belongs_to :brand
|
||||
has_many :multi_media_descriptions
|
||||
belongs_to :sub_category
|
||||
|
||||
|
||||
Reference in New Issue
Block a user