X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2d6c36d97bc8c39673be8efbab11ca64de1e89a2..f423c13ad46dc90c9ab5a9ea29ed38fdf95851fe:/app/models/way_node.rb?ds=sidebyside diff --git a/app/models/way_node.rb b/app/models/way_node.rb index 06515fc20..957016b9d 100644 --- a/app/models/way_node.rb +++ b/app/models/way_node.rb @@ -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