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.
This commit is contained in:
Tom Hughes 2007-07-20 07:51:46 +00:00
parent 95d9ae83ab
commit 9e0226113c

View 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!