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
-
- belongs_to :way, :foreign_key => :id
end