-class AddUserDateIndexToChangeset < ActiveRecord::Migration
+class AddUserDateIndexToChangeset < ActiveRecord::Migration[5.0]
def self.up
add_index :changesets, [:user_id, :created_at], :name => "changesets_user_id_created_at_idx"
end
def self.down
- remove_index :changesets, [:user_id, :created_at], :name => "changesets_user_id_created_at_idx"
+ remove_index :changesets, :name => "changesets_user_id_created_at_idx"
end
end