]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_relation_tag.rb
Added tests for validators
[rails.git] / app / models / old_relation_tag.rb
index 052b60853e9ec0f630d9b8ccd5aef59b81c89575..801ca7cab48cf48ee6513d5b856c449c82086b65 100644 (file)
@@ -19,6 +19,6 @@ class OldRelationTag < ActiveRecord::Base
   belongs_to :old_relation, :foreign_key => [:relation_id, :version]
 
   validates :old_relation, :presence => true, :associated => true
-  validates :k, :v, :allow_blank => true, :length => { :maximum => 255 }
+  validates :k, :v, :allow_blank => true, :length => { :maximum => 255 }, :invalid_chars => true
   validates :k, :uniqueness => { :scope => [:relation_id, :version] }
 end