redmine_glossary/app/models/glossary_category.rb

5 lines
144 B
Ruby

class GlossaryCategory < ActiveRecord::Base
has_many :terms, class_name: 'GlossaryTerm', foreign_key: 'category_id'
belongs_to :project
end