]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_preference.rb
Add social sharing functionality
[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