X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3666b674330ec8d14a224932a191d6121c5974e2..5da7215873152fd52a93c3d91bc38c5dbb32ddce:/app/models/language.rb?ds=sidebyside diff --git a/app/models/language.rb b/app/models/language.rb index cdf85a52b..1158721e8 100644 --- a/app/models/language.rb +++ b/app/models/language.rb @@ -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