X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/70ac60ad4a7c068d4609bb481d586a09f8c62ff6..15ab888d0c832a4d72fe19cfb4fc696aba482dca:/app/models/node.rb diff --git a/app/models/node.rb b/app/models/node.rb index 3a1d580e0..1aff4101e 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -8,7 +8,7 @@ class Node < ActiveRecord::Base belongs_to :changeset - has_many :old_nodes, :foreign_key => :id + has_many :old_nodes, :foreign_key => :id, :order => :version has_many :way_nodes has_many :ways, :through => :way_nodes