]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/005_tile_tracepoints.rb
First current node tag test
[rails.git] / db / migrate / 005_tile_tracepoints.rb
index f4d27c18c50cb50adf9fb2e1dc3574f7275b98f8..51a4d1376233c28ed88494b24f3c7eca71ee5a30 100644 (file)
@@ -16,6 +16,8 @@ class TileTracepoints < ActiveRecord::Migration
   end
 
   def self.down
+    Tracepoint.update_all("latitude = latitude / 10, longitude = longitude / 10")
+
     add_index "gps_points", ["latitude", "longitude"], :name => "points_idx"
     remove_index "gps_points", :name => "points_tile_idx"
     remove_column "gps_points", "tile"