jsmestad/dotfiles — pull request #3 by benniemosher (2014-05-29 17:56:32+00:00)
Title: Adding aliases for migrate command

http://robots.thoughtbot.com/workflows-for-writing-migrations-with-rollbacks-in-mind

- Adding an alias to `rake db:migrate db:rollback && rake db:migrate`

`rake db:migrate db:rollback` will run any pending migrations and then
attempt to roll back those migrations. If the migration and rollback are
successful (signified by `&&`), `rake db:migrate` will then run the
migration again. If the command is not successful, an error will be
thrown. In this way we can be confident our migrations' down commands
are syntactically valid (no typos) and logically valid (no invalid
castings of values, for example).