personal-selected_course/app/models/student_assignment_file.rb

12 lines
268 B
Ruby
Raw Normal View History

2020-09-20 06:37:35 +00:00
class StudentAssignmentFile
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 :student_assignment
end