Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Collapse already run rails migrations

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 rake_tasks
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 GPL_LICENSE
Octocat-spinner-32 MIT_LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 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.