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:
parent
95d9ae83ab
commit
9e0226113c
1 changed files with 0 additions and 1 deletions
|
@ -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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue