From: Tom Hughes Date: Fri, 20 Jul 2007 07:51:46 +0000 (+0000) Subject: Don't bother setting user_id for each tracepoint - it is redundant as X-Git-Tag: live~8955 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/9e0226113cb0e06ceddf15f8ca4cbd2f5359ae30?ds=sidebyside Don't bother setting user_id for each tracepoint - it is redundant as the same information can be found by joining to gpx_files. It is also never used, so the column is going to be removed. --- diff --git a/app/models/trace.rb b/app/models/trace.rb index 8f99e7bd8..155e495a3 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -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!