X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9ab15f38ea72ccd0a6b6715a9b8014c1f4ce1ad8..0c2e471708911235ded4015dfe9e957e9f1430f0:/app/models/tracepoint.rb diff --git a/app/models/tracepoint.rb b/app/models/tracepoint.rb index b3c37430d..d36ceb8c3 100644 --- a/app/models/tracepoint.rb +++ b/app/models/tracepoint.rb @@ -30,5 +30,5 @@ class Tracepoint < ApplicationRecord validates :trace, :associated => true validates :timestamp, :presence => true - belongs_to :trace, :foreign_key => "gpx_id" + belongs_to :trace, :foreign_key => "gpx_id", :inverse_of => :points end