initial commit

This commit is contained in:
2012-08-22 18:15:37 +02:00
commit 0856528f5e
120 changed files with 3048 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
class Product
include SimplyStored::Couch
property :name
property :code
property :price
belongs_to :product_category
belongs_to :supplier # direct! category is an aid
has_many :product_orders
validates :supplier_id, presence: true
end