6 lines
151 B
Ruby
6 lines
151 B
Ruby
class Product < ActiveRecord::Base
|
|
belongs_to :supplier
|
|
belongs_to :customer
|
|
validates_presence_of :designation, :message => "ne peut être vide."
|
|
end
|