X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b4ef61a9f31ac8bb911c094bc2fb00a9fa2102a6..d73a5d4bc015d304e7b8863a0e927ac0b134e07b:/app/models/old_relation_tag.rb diff --git a/app/models/old_relation_tag.rb b/app/models/old_relation_tag.rb index 801ca7cab..4a247949c 100644 --- a/app/models/old_relation_tag.rb +++ b/app/models/old_relation_tag.rb @@ -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 }, :invalid_chars => true + validates :k, :v, :allow_blank => true, :length => { :maximum => 255 }, :characters => true validates :k, :uniqueness => { :scope => [:relation_id, :version] } end