personal-course/app/models/course_category.rb

9 lines
181 B
Ruby
Raw Permalink Normal View History

2015-12-29 11:35:44 +00:00
class CourseCategory
include Mongoid::Document
include Mongoid::Timestamps
field :title, localize: true
field :sort_position, type: Integer, default: 0
has_many :courses
end