X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/20a861392e1ee7970da5d95b546aa8551faaf27b..054f934f27e79ab0f7a25a89b6b719cc2cb0cb06:/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'