A Single Task to Migrate, Redo Migration, Prepare Test Db and Annotate
Wed, Feb 9, 2011Hi!
My first blog post to announce my first gem: migrate-well. It’s a very simple one, it adds a rake task db:migrate:well
that runs the tasks db:migrate
, db:migrate:redo
, rake db:test:prepare
and annotate
. I was tired to type all those commands each time…
To install: add gem “migrate-well”
in your Gemfile and run bundle install
.
To run: rake db:migrate:well
Options (updated February 15, 2011):
redo=false
: don’t run thedb:migrate:redo
tasktest=false
: don’t run thedb:test:prepare
taskanno=false
: don’t run theannotate
command
Examples:
- run without annotating:
rake db:migrate:well anno=false
- run without annotating and without redoing the migration:
rake db:migrate:well anno=false redo=false
That’s all!