Paraphraser, is a very simple gem. It adds a rake task that will drop, re-create and migrate a database (default is test) and will output the sql generated in the migration process. It will output the sql to screen as well as to a file ./migration.sql.
Gemfile gem 'paraphraser', '~> 1.0.4'
install gem install paraphraser