]> git.openstreetmap.org Git - rails.git/commitdiff
Don't bother setting user_id for each tracepoint - it is redundant as
authorTom Hughes <tom@compton.nu>
Fri, 20 Jul 2007 07:51:46 +0000 (07:51 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 20 Jul 2007 07:51:46 +0000 (07:51 +0000)
the same information can be found by joining to gpx_files. It is also
never used, so the column is going to be removed.

app/models/trace.rb

index 8f99e7bd8cb57bfc35954a5e8b687638d7cd0beb..155e495a34b485b9123323088e45f58c2bfb2094 100644 (file)
@@ -188,7 +188,6 @@ class Trace < ActiveRecord::Base
         tp.lng = point['longitude'].to_f
         tp.altitude = point['altitude'].to_f
         tp.timestamp = point['timestamp']
-        tp.user_id = user.id
         tp.gpx_id = id
         tp.trackid = point['segment'].to_i
         tp.save!