personal-course/app/models/course_semester.rb

8 lines
131 B
Ruby

class CourseSemester
include Mongoid::Document
include Mongoid::Timestamps
field :title, localize: true
has_many :courses
end