]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_way_node.rb
Added a bunch more tests on the API 0.6. Fixed node/way/relation from_xml code to...
[rails.git] / app / models / old_way_node.rb
index 85a6f3c1c6da03105582de4243bbaf90c893f9d6..7420b5cfc6de874fff207e65571eda62f4e9a7ae 100644 (file)
@@ -2,4 +2,6 @@ class OldWayNode < ActiveRecord::Base
   set_table_name 'way_nodes'
 
   set_primary_keys :id, :version, :sequence_id
+
+  belongs_to :way, :foreign_key=> :id
 end