]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/028_add_more_changeset_indexes.rb
Merge remote-tracking branch 'upstream/pull/3121'
[rails.git] / db / migrate / 028_add_more_changeset_indexes.rb
index 976aeb19e69d388f17b3aaf6e0ad182611f5e27d..d7a6df7abb92050c32fa86355f371785e4bc1b77 100644 (file)
@@ -1,10 +1,8 @@
-require "migrate"
-
-class AddMoreChangesetIndexes < ActiveRecord::Migration
+class AddMoreChangesetIndexes < ActiveRecord::Migration[4.2]
   def self.up
     add_index "changesets", ["created_at"], :name => "changesets_created_at_idx"
     add_index "changesets", ["closed_at"], :name => "changesets_closed_at_idx"
-    add_index "changesets", %w(min_lat max_lat min_lon max_lon), :name => "changesets_bbox_idx"
+    add_index "changesets", %w[min_lat max_lat min_lon max_lon], :name => "changesets_bbox_idx", :using => "GIST"
   end
 
   def self.down