]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node_tag.rb
Remove redundant presence validation on belongs_to
[rails.git] / app / models / node_tag.rb
index fa21b1ff6fdd60b2c813e7bd7979ee6b5a140837..d76a1a0ae865a7e8e86cd3f8c93e3c87c75a1928 100644 (file)
@@ -17,7 +17,7 @@ class NodeTag < ApplicationRecord
 
   belongs_to :node
 
-  validates :node, :presence => true, :associated => true
+  validates :node, :associated => true
   validates :k, :v, :allow_blank => true, :length => { :maximum => 255 }, :characters => true
   validates :k, :uniqueness => { :scope => :node_id }
 end