db_mirror

Peter: Hey Jeff! I'm done with the migration of the database..
Jeff: Really? Because the customer has sent us an email that only half of the data is migrated?
Peter: 😱... That is not possible!!
Jeff: Have you checked how many entries were in the original database?
Peter: Yea! There were 2'131'005 entries
Jeff: How many are in the new database?
Peter: .............900'231....
Jeff: 😠

Ensure that you rails database is migrated properly! Easy enough using db_mirror.

Installation

gem install db_mirror

Usage

db_mirror LEVEL={level} EXCLUDED_MODELS={excluded_models}

Comparison levels

Level 1

Level 2

Level 3

Level 4

License

LICENSE

Changelog

Changelog