TokiTranslate/app/models/part_of_speech.rb
2023-12-06 15:53:25 -05:00

6 lines
154 B
Ruby

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