Having a table with a column called ID that is only part of the primary key really doesn't work as rails likes to treat ID as a special name so it becomes impossible to assign to it or read it.
7 lines
155 B
Ruby
7 lines
155 B
Ruby
class WayNode < ActiveRecord::Base
|
|
set_table_name 'current_way_nodes'
|
|
set_primary_keys :way_id, :sequence_id
|
|
|
|
belongs_to :way
|
|
belongs_to :node
|
|
end
|