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
|
|
|
|
|
|
|
end
|