X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/172a71e3f242f74a6eb1f7bb45fb4d5f3ddff5e7..03fdc6d67f1826b1a202eb50c284fa9202af24af:/app/models/node.rb diff --git a/app/models/node.rb b/app/models/node.rb index 3214564c8..f6f0f258e 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -32,7 +32,7 @@ class Node < ApplicationRecord belongs_to :changeset - has_many :old_nodes, -> { order(:version) } + has_many :old_nodes, -> { order(:version) }, :inverse_of => :current_node has_many :way_nodes has_many :ways, :through => :way_nodes