personal-selected_course/app/models/selected_course_syllabus_fi...

12 lines
270 B
Ruby
Raw Normal View History

2020-09-20 06:24:31 +00:00
class SelectedCourseSyllabusFile
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 :selected_course
end