]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_preference.rb
Bump eslint from 8.56.0 to 8.57.0
[rails.git] / app / models / user_preference.rb
index d5cad3978c81f087cacee2b13f3e152aa87df506..5b91bbda91badfe4f4242c9fc6a5a563b4cdcd19 100644 (file)
 #
 
 class UserPreference < ApplicationRecord
-  self.primary_keys = "user_id", "k"
-
   belongs_to :user
 
-  validates :user, :presence => true, :associated => true
+  validates :user, :associated => true
   validates :k, :v, :length => 1..255, :characters => true
 end