Quick bash/zsh aliases for creating rails databases
A combination of the GitHub flow (http://scottchacon.com/2011/08/31/github-flow.html) and having a database config that needs a new database for each branch means I spend a lot of time creating databases.
These aliases make my life a little easier:
alias dbup="rake db:setup && rake db:test:prepare"
alias dbupp="rake db:setup && rake db:test:prepare && rake parallel:create && rake parallel:prepare"
Written by Olly Smith
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#