X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/461f99dfe03ed0dfea2d973378e0ace70134c199..be9d93640c9303cce9b4789e365eafa15a740b1b:/app/models/user_preference.rb?ds=sidebyside diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb index d5cad3978..5b91bbda9 100644 --- a/app/models/user_preference.rb +++ b/app/models/user_preference.rb @@ -12,10 +12,8 @@ # 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