]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_way.rb
Enable active_record.belongs_to_required_by_default
[rails.git] / app / models / old_way.rb
index 7af8906b1a9a64b36ab371ab01b62e0411af146b..03c281e5a437c40f8f4aef0a8b5bcfaaf16bcdf2 100644 (file)
@@ -31,7 +31,7 @@ class OldWay < ApplicationRecord
   include Redactable
 
   belongs_to :changeset
-  belongs_to :redaction
+  belongs_to :redaction, :optional => true
   belongs_to :current_way, :class_name => "Way", :foreign_key => "way_id"
 
   has_many :old_nodes, :class_name => "OldWayNode", :foreign_key => [:way_id, :version]