Add rdmd and rdmu aliases to Rails plugin

* `rdmd` is aliased to `rake db:migrate:down`
* `rdmu` is aliased to `rake db:migrate:up`
* These tasks allow you to run a specific migration up or down by
specifying the appropriate `VERSION` env variable, which contains
the numerical prefix of the migration's filename
This commit is contained in:
Dzianis Dashkevich 2017-06-06 11:34:50 +03:00
parent 291e96dcd0
commit 2aeecc21e9
No known key found for this signature in database
GPG Key ID: C4AC27C1413E38DF

View File

@ -49,7 +49,9 @@ alias rsp='rails server --port'
# Rake aliases # Rake aliases
alias rdm='rake db:migrate' alias rdm='rake db:migrate'
alias rdmd='rake db:migrate:down'
alias rdms='rake db:migrate:status' alias rdms='rake db:migrate:status'
alias rdmu='rake db:migrate:up'
alias rdr='rake db:rollback' alias rdr='rake db:rollback'
alias rdc='rake db:create' alias rdc='rake db:create'
alias rds='rake db:seed' alias rds='rake db:seed'