]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/028_add_more_changeset_indexes.rb
Make paragraph breaks more visible in changeset and note comments
[rails.git] / db / migrate / 028_add_more_changeset_indexes.rb
index ea2dc0290f3d891e4479b5125ca6500616c92428..4f07b9d589d560962f3f70da5cb86e830fd230a0 100644 (file)
@@ -1,10 +1,10 @@
-require 'migrate'
+require "migrate"
 
-class AddMoreChangesetIndexes < ActiveRecord::Migration
+class AddMoreChangesetIndexes < ActiveRecord::Migration[5.0]
   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", ["min_lat","max_lat","min_lon","max_lon"], :name => "changesets_bbox_idx", :using => "GIST"
+    add_index "changesets", %w[min_lat max_lat min_lon max_lon], :name => "changesets_bbox_idx", :using => "GIST"
   end
 
   def self.down