X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/53aa7259bb0612eb48a17d0b954ad71ea37d87a4..2cd7af7e0b2ad97687849576ed4e3f52c37a6d55:/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]