orbit-basic/app/models/purchase/purchase.rb

17 lines
285 B
Ruby
Raw Normal View History

2011-08-18 05:43:33 +00:00
class Purchase
include Mongoid::Document
include Mongoid::Timestamps
field :purchase_id
field :title
field :author
field :intro
field :downloaded, :type => Boolean
field :download_date, :type => Date
2011-08-18 05:43:33 +00:00
2011-12-20 08:47:17 +00:00
field :type
field :app_controller
has_many :app_auths
2011-08-18 05:43:33 +00:00
end