]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_preference.rb
Merge remote-tracking branch 'upstream/pull/3983'
[rails.git] / app / models / user_preference.rb
index 37bab38b0ccb7c6f5ff481e0efc234a01aa18d2d..741aa335aca9c2f2375cb09bbe0093912e07115e 100644 (file)
 #  user_preferences_user_id_fkey  (user_id => users.id)
 #
 
-class UserPreference < ActiveRecord::Base
+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