]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/language.rb
Bump osm-community-index from 5.5.0 to 5.5.1
[rails.git] / app / models / language.rb
index bb1aa4bd26016758ad3d8b66d09a7527a72b8ad8..1158721e8de9cf062ff911bd6d6ee5028393d445 100644 (file)
@@ -7,10 +7,10 @@
 #  native_name  :string
 #
 
-class Language < ActiveRecord::Base
+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