redmine_glossary/app/models/glossary_term.rb

4 lines
127 B
Ruby

class GlossaryTerm < ActiveRecord::Base
belongs_to :category, class_name: 'GlossaryCategory', foreign_key: 'category_id'
end