```ruby
class AddIndicesForUser < ActiveRecord::Migration
  def up
    add_index :users, :email, unique: true
    add_index :users, :reset_password_token, unique: true
  end

  def down
    remove_index :users, :email, unique: true
    remove_index :users, :reset_password_token
  end
end
```

Allow all migrations to run in sequence
user
```ruby
class AddIndicesForUser < ActiveRecord::Migration
  def try_to(&block)
    begin
      yield
    rescue => e
      puts e
    end
  end

  def up
    try_to { add_index :users, :email, unique: true }
    try_to { add_index :users, :reset_password_token, unique: true }
  end

  def down
    remove_index :users, :email, unique: true
    remove_index :users, :reset_password_token
  end
end
```
assistant