From 7dbc349510551bb7047414b32d2b14afebfcfab5 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 7 Oct 2023 15:08:30 +0100 Subject: [PATCH] Drop redundant primary key specification for languages table --- app/models/language.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/language.rb b/app/models/language.rb index f346c8a748..8d3e4583fa 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)