Skip to content

Instantly share code, notes, and snippets.

@turboladen
Created December 9, 2013 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turboladen/7877566 to your computer and use it in GitHub Desktop.
Save turboladen/7877566 to your computer and use it in GitHub Desktop.
alias rdbm='bin/rake db:migrate db:test:clone'
alias rdbmt='bin/rake db:migrate RAILS_ENV=test'
alias rdbr='bin/rake db:rollback'
alias spec_all='bin/spring rspec spec'
spec_model() { bin/spring rspec spec/models/"$1"_spec.rb }
spec_controller() { bin/spring rspec spec/controllers/"$1"_controller_spec.rb }
spec_views() { bin/spring rspec spec/views/"$1"/*_spec.rb }
alias devlog='tail -f log/development.log'
alias testlog='tail -f log/test.log'
alias prodlog='tail -f log/production.log'
#alias rr='bin/rake routes'
rr() { bin/rake routes | grep "$1" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment