X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c2f23fea6a7821a4ad4c97fd65744b138ec86267..35a2d66e1960b00e5ed0cecbe4263cdeedb1ad62:/app/models/user_preference.rb diff --git a/app/models/user_preference.rb b/app/models/user_preference.rb index 781dd626a..3963bd02a 100644 --- a/app/models/user_preference.rb +++ b/app/models/user_preference.rb @@ -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 wrapper. def to_xml_node