personal-research/app/models/research_category.rb

9 lines
185 B
Ruby
Raw Normal View History

2015-12-30 10:12:32 +00:00
class ResearchCategory
include Mongoid::Document
include Mongoid::Timestamps
field :title, localize: true
field :sort_position, type: Integer, default: 0
has_many :researches
end