Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Product
- include DataMapper::Resource
- property :id , Serial
- property :code , String , :nullable => false, :length => 6..6
- property :name , String , :nullable => false
- property :paid_in_advance, Boolean , :nullable => false, :default => false
- property :has_gst , Boolean , :nullable => false, :default => false
- property :has_deposit , Boolean , :nullable => false, :default => false
- property :updated_at , DateTime
- property :created_at , DateTime
- has n, :rates
- has n, :rate_modifiers
- belongs_to :lender
- end
Add Comment
Please, Sign In to add comment