From 9e0226113cb0e06ceddf15f8ca4cbd2f5359ae30 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 20 Jul 2007 07:51:46 +0000 Subject: [PATCH] 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. --- app/models/trace.rb | 1 - 1 file changed, 1 deletion(-) 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! -- 2.39.5