]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_way_node.rb
Change the way that the changeset parsing is done, so that it is in line with the...
[rails.git] / app / models / old_way_node.rb
index 5260ee698f5b8df2e356c12284c002ea9f1bc85b..6234b85c2b48c4baaeb15579623e878a49d19c3e 100644 (file)
@@ -1,6 +1,10 @@
 class OldWayNode < ActiveRecord::Base
-  belongs_to :user
-
   set_table_name 'way_nodes'
 
+  set_primary_keys :id, :version, :sequence_id
+
+  belongs_to :way, :foreign_key=> :id
+  
+  # A bit messy, referring to current nodes, should do for the data browser for now
+  belongs_to :node
 end