]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/049_improve_changeset_user_index.rb
Move 'Forgot password' link to the right of password label
[rails.git] / db / migrate / 049_improve_changeset_user_index.rb
index af5d1a2ac2aa90cffb08446f70cce182a7d20d9b..b58860d600d8c9951e502c6f00ad3d10cd136055 100644 (file)
@@ -1,4 +1,4 @@
-class ImproveChangesetUserIndex < ActiveRecord::Migration
+class ImproveChangesetUserIndex < ActiveRecord::Migration[4.2]
   def self.up
     add_index :changesets, [:user_id, :id], :name => "changesets_user_id_id_idx"
     remove_index :changesets, :name => "changesets_user_id_idx"
@@ -6,6 +6,6 @@ class ImproveChangesetUserIndex < ActiveRecord::Migration
 
   def self.down
     add_index :changesets, [:user_id], :name => "changesets_user_id_idx"
-    remove_index :changesets, [:user_id, :id], :name => "changesets_user_id_id_idx"
+    remove_index :changesets, :name => "changesets_user_id_id_idx"
   end
 end