From: Tom Hughes Date: Sat, 7 Oct 2023 14:08:30 +0000 (+0100) Subject: Drop redundant primary key specification for languages table X-Git-Tag: live~1078 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/7dbc349510551bb7047414b32d2b14afebfcfab5?hp=-c Drop redundant primary key specification for languages table --- 7dbc349510551bb7047414b32d2b14afebfcfab5 diff --git a/app/models/language.rb b/app/models/language.rb index f346c8a74..8d3e4583f 100644 --- a/app/models/language.rb +++ b/app/models/language.rb @@ -8,8 +8,6 @@ # class Language < ApplicationRecord - self.primary_key = "code" - has_many :diary_entries, :foreign_key => "language", :inverse_of => :language def self.load(file)