added brands

This commit is contained in:
Edin Dazdarevic
2015-03-28 14:38:15 +01:00
parent 6c7a1b962f
commit 71fbde93de
11 changed files with 35 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
class Brand < ActiveRecord::Base
has_many :items
end

View File

@@ -1,5 +1,6 @@
class Item < ActiveRecord::Base
belongs_to :unit
belongs_to :brand
has_many :multi_media_descriptions
belongs_to :sub_category