This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
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
|
2011-09-13 06:03:03 +00:00
|
|
|
field :downloaded, :type => Boolean
|
2011-11-14 02:22:31 +00:00
|
|
|
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
|