Renumber Migrations plugin

Plugin details

If you work in a team on a Rails project, chances are that you and your team mates occasionally create identically-numbered migrations. Renumbering a migration that you're working on is a pain, unless you're using this handy 'renumber_migrations' plugin.

Websitehttp://www.sanityinc.com/articles/renumber-rails-migrations Repositoryhttp://rails.sanityinc.com/plugins/renumber_migrations/ Author Steve Purcell Tags renumber, Migrations, db LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://rails.sanityinc.com/plugins/renumber_migrations/

After doing an 'svn up', you notice that somebody else checked in the same-numbered migration(s) that you've been working on.

To safely migrate back down, and then renumber your new migrations appropriately, simply run:

rake db:migrate:renumber

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (2 older versions) | Last edited by: scott, over 5 years ago

Plugin Search

Sponsors