orbit-personaljournal/app/models/writing_journal_file.rb

15 lines
270 B
Ruby

class WritingJournalFile
include Mongoid::Document
include Mongoid::Timestamps
mount_uploader :file, AssetUploader
field :description, localize: true
field :should_destroy, :type => Boolean
field :title, localize: true
belongs_to :writing_journal
end