]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_node.rb
Creating consistency check for creation of nodes, way and relations. Moving some...
[rails.git] / app / models / old_node.rb
index d4d9f177575ab3e23b131afd6f93567cbe9fbb09..8b3ba784bfb834c7598b932f5e31212f14bd24ad 100644 (file)
@@ -1,5 +1,6 @@
 class OldNode < ActiveRecord::Base
   include GeoRecord
+  include ConsistencyValidations
 
   set_table_name 'nodes'
   
@@ -38,6 +39,7 @@ class OldNode < ActiveRecord::Base
     el1['id'] = self.id.to_s
     el1['lat'] = self.lat.to_s
     el1['lon'] = self.lon.to_s
+    el1['changeset'] = self.changeset.id.to_s
     el1['user'] = self.changeset.user.display_name if self.changeset.user.data_public?
 
     self.tags.each do |k,v|