]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_preference.rb
Remove outdated comment
[rails.git] / app / models / user_preference.rb
index 37bab38b0ccb7c6f5ff481e0efc234a01aa18d2d..5b91bbda91badfe4f4242c9fc6a5a563b4cdcd19 100644 (file)
 #  user_preferences_user_id_fkey  (user_id => users.id)
 #
 
-class UserPreference < ActiveRecord::Base
-  self.primary_keys = "user_id", "k"
-
+class UserPreference < ApplicationRecord
   belongs_to :user
 
-  validates :user, :presence => true, :associated => true
+  validates :user, :associated => true
   validates :k, :v, :length => 1..255, :characters => true
 end