progress and end of day commit
This commit is contained in:
@@ -2,6 +2,11 @@ class ProductCategory
|
||||
include SimplyStored::Couch
|
||||
|
||||
property :name
|
||||
property :position, type: Fixnum, default: 0
|
||||
|
||||
belongs_to :supplier
|
||||
has_many :products
|
||||
|
||||
validates :position, numericality: true
|
||||
validates :supplier_id, presence: true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user