Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (25 sloc) 1.392 kB
8045469 @purcell Initial check-in
authored
1 RenumberMigrations
2 ==================
3
4 Automatically renumber new local migrations when their numbers clash with
5 team-mates' migrations updated from a subversion repository.
6
9003607 @purcell Documentation tweaks and an about.yml
authored
7 The plugin provides a rake task that has been used without problems for over
8 a year on a huge project with 8+ developers and over 600 migrations.
9
8045469 @purcell Initial check-in
authored
10 The plugin's home on the web is here:
11
12 http://www.sanityinc.com/ - articles and news
13 http://git.sanityinc.com/?p=renumber_migrations.git;a=summary - code and downloads
14
15 Send feedback or patches by email to steve@sanityinc.com
16
17
18 Examples
19 ========
20
21 You're working on migration 045_add_my_new_feature.rb, when one of your team-mates checks
22 045_some_other_migration.rb into svn. You notice the numbering clash (or 'rake db:migrate'
23 notices it for you), and you simply run the db:migrate:renumber task:
24
25 % rake db:migrate:renumber
26
27 Voilá - your migration is renumbered to 046, and the database schema is left at version
28 044 ready for you to re-test your migration.
29
30
31 Requirements
32 ============
33
34 Note that renumbering a migration *requires* that you have a working #down method for
35 your migration.
36
37 Renumbering also requires that you have network access to the subversion server, since
38 clashing migrations are temporarily removed locally, and later re-requested.
39
40
41
42 Copyright (c) 2007 Steve Purcell, released under the MIT license
Something went wrong with that request. Please try again.