]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/language.rb
Bump eslint from 8.38.0 to 8.39.0
[rails.git] / app / models / language.rb
index cdf85a52bc3530cb11dc0eb3e0a05ed29d7f7a56..1158721e8de9cf062ff911bd6d6ee5028393d445 100644 (file)
@@ -10,7 +10,7 @@
 class Language < ApplicationRecord
   self.primary_key = "code"
 
-  has_many :diary_entries, :foreign_key => "language"
+  has_many :diary_entries, :foreign_key => "language", :inverse_of => :language
 
   def self.load(file)
     Language.transaction do