TokiTranslate/app/models/part_of_speech.rb

6 lines
154 B
Ruby
Raw Permalink Normal View History

class PartOfSpeech < ApplicationRecord
belongs_to :language
2023-12-06 20:53:25 +00:00
has_many :translations, class_name: "PartOfSpeech", foreign_key: "part_of_speech_id"
end