public
Description: Rails plugin for renumbering clashing migrations in a project kept in svn
Homepage: http://www.sanityinc.com/articles/renumber-rails-migrations
Clone URL: git://github.com/purcell/renumber_migrations.git
Search Repo:
Click here to lend your support to: renumber_migrations and make a donation at www.pledgie.com !
name age message
folder MIT-LICENSE Sat Nov 17 01:28:38 -0800 2007 Initial check-in [purcell]
folder README Sat Nov 17 01:47:10 -0800 2007 Documentation tweaks and an about.yml [purcell]
folder about.yml Sat Nov 17 01:47:10 -0800 2007 Documentation tweaks and an about.yml [purcell]
folder init.rb Sat Nov 17 01:28:38 -0800 2007 Initial check-in [purcell]
folder tasks/ Sun Mar 02 10:01:32 -0800 2008 Fix idiotic unconditional 'raise'; was an incom... [purcell]
README
RenumberMigrations
==================

Automatically renumber new local migrations when their numbers clash with
team-mates' migrations updated from a subversion repository.

The plugin provides a rake task that has been used without problems for over
a year on a huge project with 8+ developers and over 600 migrations.

The plugin's home on the web is here:

   http://www.sanityinc.com/                                      - articles and news
   http://git.sanityinc.com/?p=renumber_migrations.git;a=summary  - code and downloads

Send feedback or patches by email to steve@sanityinc.com


Examples
========

You're working on migration 045_add_my_new_feature.rb, when one of your team-mates checks
045_some_other_migration.rb into svn.  You notice the numbering clash (or 'rake db:migrate'
notices it for you), and you simply run the db:migrate:renumber task:

% rake db:migrate:renumber

Voilá - your migration is renumbered to 046, and the database schema is left at version
044 ready for you to re-test your migration.


Requirements
============

Note that renumbering a migration *requires* that you have a working #down method for
your migration.

Renumbering also requires that you have network access to the subversion server, since
clashing migrations are temporarily removed locally, and later re-requested.



Copyright (c) 2007 Steve Purcell, released under the MIT license