]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_relation_tag.rb
Fix rubocop Rails/TimeZone warnings
[rails.git] / app / models / old_relation_tag.rb
index d6e6e19c2dfb921a4f4621e22f9d83b08b5f86c1..124c89ad51d2a8f941d51e1297cb3b88611ce158 100644 (file)
@@ -18,7 +18,7 @@ class OldRelationTag < ApplicationRecord
 
   belongs_to :old_relation, :foreign_key => [:relation_id, :version]
 
-  validates :old_relation, :presence => true, :associated => true
+  validates :old_relation, :associated => true
   validates :k, :v, :allow_blank => true, :length => { :maximum => 255 }, :characters => true
   validates :k, :uniqueness => { :scope => [:relation_id, :version] }
 end