If the migration name is of the form "AddXXXToYYY" or "RemoveXXXFromYYY" and is followed by a list of column names and types then a migration containing the appropriate add_column and remove_column statements will be created.
$ rails g migration CreateUsers email:string:index
db/migrate/20161201203703_create_users.rb
class CreateUsers < ActiveRecord::Migration