X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a41d500b9f65ec9f4e848effd38dc1ae117e7594..a119e873bef721d25e00539b728128bfc1b4e3d9:/app/models/language.rb 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