]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_way_node.rb
Make the search box load each set of results separately so that one
[rails.git] / app / models / old_way_node.rb
index 85a6f3c1c6da03105582de4243bbaf90c893f9d6..6234b85c2b48c4baaeb15579623e878a49d19c3e 100644 (file)
@@ -2,4 +2,9 @@ class OldWayNode < ActiveRecord::Base
   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