X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5d07b6d76c9488334608d3db57c5bc79bb6d177d..4cad1970fbd15d455ad231d7e75a400344fc9e02:/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'