Skip to content

A handy "redo" tool to re-run the most recent migration #79

@chapmandu

Description

@chapmandu

This feature would be very handy during the development of migration scripts. Perhaps a link on the plugin's index page. I'm not convinced the the step parameter is required?

From http://guides.rubyonrails.org/migrations.html

The db:migrate:redo task is a shortcut for doing a rollback and then migrating back up again. As with the db:rollback task, you can use the STEP parameter if you need to go more than one version back, for example:

$ rake db:migrate:redo STEP=3
Neither of these Rake tasks do anything you could not do with db:migrate. They are simply more convenient, since you do not need to explicitly specify the version to migrate to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions