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 8f99e7b..155e495 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!