X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/73340e1780bfee7b3ebfd17f9fa204647ea40d34..aca5308bcdc5ed5d85236731b65b728a4b870a09:/app/models/language.rb diff --git a/app/models/language.rb b/app/models/language.rb index 7bb0b6e77..3a63176f6 100644 --- a/app/models/language.rb +++ b/app/models/language.rb @@ -1,5 +1,5 @@ class Language < ActiveRecord::Base - set_primary_key :code + self.primary_key = "code" has_many :diary_entries, :foreign_key => 'language'