]> git.openstreetmap.org Git - rails.git/commitdiff
Drop redundant primary key specification for languages table
authorTom Hughes <tom@compton.nu>
Sat, 7 Oct 2023 14:08:30 +0000 (15:08 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 7 Oct 2023 14:08:30 +0000 (15:08 +0100)
app/models/language.rb

index f346c8a748aeb94dc44bf6d4d8769ffe8ba0bdaa..8d3e4583fad137db074ed85614a27becdaeaf759 100644 (file)
@@ -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)