X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fea1b5b88de731dd35d1f79d36ec40a8e8a1f6af..89b3633e862610bde3f51fe40cc7a4507f2b7d89:/app/models/old_way.rb?ds=sidebyside diff --git a/app/models/old_way.rb b/app/models/old_way.rb index 7af8906b1..03c281e5a 100644 --- a/app/models/old_way.rb +++ b/app/models/old_way.rb @@ -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]