personal-course/app/models/course_supplement_file.rb

12 lines
255 B
Ruby

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