0.0
No commit activity in last 3 years
No release in over 3 years
Adds a rake task "db:migrate:well" that runs "rake db:migrate", "rake db:migrate:redo", "rake db:test:prepare" and "annotate". Options: "redo:false": without db:redo; "test:false": without db:test:prepare; "anno:false": without annotate.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

migrate-well

migrate-well is a very simple gem for Rails 3. It adds a rake task db:migrate:well that runs rake db:migrate, rake db:migrate:redo, rake db:test:prepare and annotate (only if the annotate gem is installed).

It has been tested with Rails 3.0.3.

To install: add gem "migrate-well" in your Gemfile and run bundle install

To run: rake db:migrate:well

Options:

  • redo=false: don't run the db:migrate:redo task
  • test=false: don't run the db:test:prepare task
  • anno=false: don't run the annotate 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

TODO

  • allow passing of options to the annotate command
  • tests...