]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_preference.rb
Allow moderators to hide diary entries and comments
[rails.git] / app / models / user_preference.rb
index 781dd626a7c251cc98dcc56232f9c013bf5500ad..3963bd02aeb47ade7f6b47faf15293412b63c604 100644 (file)
@@ -2,7 +2,7 @@
 #
 # Table name: user_preferences
 #
-#  user_id :bigint(8)        not null, primary key
+#  user_id :integer          not null, primary key
 #  k       :string           not null, primary key
 #  v       :string           not null
 #
@@ -17,7 +17,7 @@ class UserPreference < ActiveRecord::Base
   belongs_to :user
 
   validates :user, :presence => true, :associated => true
-  validates :k, :v, :length => 1..255, :invalid_chars => true
+  validates :k, :v, :length => 1..255, :characters => true
 
   # Turn this Node in to an XML Node without the <osm> wrapper.
   def to_xml_node