personal-selected_course/app/models/selected_course_activity_fi...

12 lines
261 B
Ruby

class SelectedCourseActivityFile
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