Skip to content
Collapse already run rails migrations
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
rake_tasks
spec
.gitignore
GPL_LICENSE
MIT_LICENSE
README.rdoc
Rakefile
VERSION

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
Something went wrong with that request. Please try again.