10 lines
256 B
Ruby
10 lines
256 B
Ruby
class LabelProduit < ActiveRecord::Base
|
|
belongs_to :label_category
|
|
belongs_to :label_marque
|
|
|
|
has_one :label_famille, :through => :label_category
|
|
|
|
has_many :label_distributeurs, :through => :label_marque
|
|
validates :name, :presence => true
|
|
end
|