]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node_tag.rb
Rubocop fixes for ruby 2.5
[rails.git] / app / models / node_tag.rb
index 20065b993137f8e1df485c24c81d716371c062ae..43915bc1265df1155f31dc51bf8b457620600bbe 100644 (file)
@@ -18,6 +18,6 @@ class NodeTag < ActiveRecord::Base
   belongs_to :node
 
   validates :node, :presence => true, :associated => true
-  validates :k, :v, :allow_blank => true, :length => { :maximum => 255 }
+  validates :k, :v, :allow_blank => true, :length => { :maximum => 255 }, :characters => true
   validates :k, :uniqueness => { :scope => :node_id }
 end