X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ddd5b4cf19a92582fd114914be5bd5a04d3522a7..4fbc1ddde4d33dd0bf13f7a035f7faa96f3ef1e7:/app/models/way_node.rb diff --git a/app/models/way_node.rb b/app/models/way_node.rb index 7f7789303..957016b9d 100644 --- a/app/models/way_node.rb +++ b/app/models/way_node.rb @@ -3,4 +3,6 @@ class WayNode < ActiveRecord::Base set_primary_keys :id, :sequence_id belongs_to :node + + belongs_to :way, :foreign_key => :id end