Skip to content
Browse files

enhance migrate and rollback shortcuts for rails apps

  • Loading branch information...
1 parent 3cba04c commit 54c782ab3b71d49dd7121b101d445dc481fc6c34 @florianpilz committed Dec 7, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 dotfiles/bash/aliases
View
5 dotfiles/bash/aliases
@@ -9,7 +9,8 @@ alias list='ls -AGFohS'
# ruby
alias c='script/rails console'
alias s='script/rails server'
-alias migrate='rake db:migrate && rake db:migrate RAILS_ENV=test'
+alias migrate='rake db:migrate RAILS_ENV=production && rake db:migrate RAILS_ENV=development && rake db:migrate RAILS_ENV=test'
+alias rollback='rake db:rollback RAILS_ENV=production && rake db:rollback RAILS_ENV=development && rake db:rollback RAILS_ENV=test'
alias hgc='hg commit -m '
@@ -41,7 +42,7 @@ function simson-paste() {
}
function simson-copy() {
- ssh kain "scp simson10:$2$1 $1"
+ ssh kain "scp simson08:$2$1 $1"
scp kain:$1 $1
ssh kain "rm $1"
}

0 comments on commit 54c782a

Please sign in to comment.
Something went wrong with that request. Please try again.