personal-journal/app/models/journal_paper_file.rb

13 lines
356 B
Ruby
Raw Normal View History

2014-06-12 10:27:26 +00:00
class JournalPaperFile
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Attributes::Dynamic
field :description, type: String, localize: true
field :title, type: String, localize: true
2014-06-18 04:09:19 +00:00
field :should_destroy, type: Boolean
2014-06-12 10:27:26 +00:00
mount_uploader :journal_file, AssetUploader
2014-07-10 06:52:06 +00:00
belongs_to :journal_paper, dependent: :destroy
2014-06-12 10:27:26 +00:00
end