]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way_node.rb
More unit tests for the parsing of the Node.from_xml. Some code clean up to ensure...
[rails.git] / app / models / way_node.rb
index 06515fc20711e179f978264e0b1514d75d462181..957016b9dd6fd91d1b50b7b54faffc060888a66b 100644 (file)
@@ -1,5 +1,8 @@
 class WayNode < ActiveRecord::Base
   set_table_name 'current_way_nodes'
 
+  set_primary_keys :id, :sequence_id
   belongs_to :node
+
+  belongs_to :way, :foreign_key => :id
 end