]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way_node.rb
Add support for rotating banners, add banners for SOTM, SOTMUS
[rails.git] / app / models / way_node.rb
index 7f7789303f736da688195cad874df0c324d93aa1..30d9013565eb9ebf3c78f795e9a51ae7c84304b4 100644 (file)
@@ -1,6 +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"
 
-  set_primary_keys :id, :sequence_id
+  belongs_to :way
   belongs_to :node
 end