personal-research/app/models/research_category.rb

9 lines
185 B
Ruby

class ResearchCategory
include Mongoid::Document
include Mongoid::Timestamps
field :title, localize: true
field :sort_position, type: Integer, default: 0
has_many :researches
end