-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"
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