TokiTranslate/app/models/part_of_speech.rb

6 lines
154 B
Ruby

class PartOfSpeech < ApplicationRecord
belongs_to :language
has_many :translations, class_name: "PartOfSpeech", foreign_key: "part_of_speech_id"
end