]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way_node.rb
Supply hints for OSRM
[rails.git] / app / models / way_node.rb
index 06515fc20711e179f978264e0b1514d75d462181..30d9013565eb9ebf3c78f795e9a51ae7c84304b4 100644 (file)
@@ -1,5 +1,7 @@
 class WayNode < ActiveRecord::Base
-  set_table_name 'current_way_nodes'
+  self.table_name = "current_way_nodes"
+  self.primary_keys = "way_id", "sequence_id"
 
+  belongs_to :way
   belongs_to :node
 end