]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/005_tile_tracepoints.rb
Removes DOM difference in location button (main map)
[rails.git] / db / migrate / 005_tile_tracepoints.rb
index fea6d41379ee909ae873923b7571da5346f39efb..00e5af293ba39f66f71c14d97082f9aa264c8291 100644 (file)
@@ -1,4 +1,4 @@
-require 'migrate'
+require "migrate"
 
 class TileTracepoints < ActiveRecord::Migration
   def self.up
@@ -20,7 +20,7 @@ class TileTracepoints < ActiveRecord::Migration
   def self.down
     Tracepoint.update_all("latitude = latitude / 10, longitude = longitude / 10")
 
-    add_index "gps_points", ["latitude", "longitude"], :name => "points_idx"
+    add_index "gps_points", %w[latitude longitude], :name => "points_idx"
     remove_index "gps_points", :name => "points_tile_idx"
     remove_column "gps_points", "tile"
   end