Collapse already run rails migrations
Ruby
Permalink
Failed to load latest commit information.
bin Add migration collapser Nov 25, 2009
lib
rake_tasks
spec Update version to 0.1.1 Nov 25, 2009
.gitignore ignore the pkg dir Sep 8, 2009
GPL_LICENSE Add GPL & MIT Licenses May 9, 2009
MIT_LICENSE Update copyright date Aug 30, 2009
README.rdoc Add README Nov 25, 2009
Rakefile Rename rake files to use .rb Nov 24, 2009
VERSION Update version to 0.1.1 Nov 25, 2009

README.rdoc

Migration Collapser

Collapse your rails migrations

Installation

gem install migration_collapser

Usage

First, load your production database:

mysql -u root my_dev_db < my_production_db.sql

Dump your production database (without data) in db/migrate/initial_schema.sql

mysqldump -u root --no-data my_dev_db > db/migrate/initial_schema.sql

Run the migration collapser from RAILS_ROOT:

collapse_migrations