1
0
Fork 0

Add alias for db reset

pull/1097/head
Filip Sotirov 9 years ago
parent 4f19700919
commit d06f8f3561

@ -12,6 +12,7 @@ Aliases
- `rordm` migrates the database. - `rordm` migrates the database.
- `rordM` migrates the database and recreates the test database. - `rordM` migrates the database and recreates the test database.
- `rordr` rolls the database schema back to the previous version. - `rordr` rolls the database schema back to the previous version.
- `rordR` resets the database schema (does db:drop db:setup).
- `rorg` generates new code. - `rorg` generates new code.
- `rorl` displays the log. - `rorl` displays the log.
- `rorlc` truncates logs to zero bytes. - `rorlc` truncates logs to zero bytes.

@ -25,6 +25,7 @@ alias rordc='bundle exec rails dbconsole'
alias rordm='bundle exec rake db:migrate' alias rordm='bundle exec rake db:migrate'
alias rordM='bundle exec rake db:migrate db:test:clone' alias rordM='bundle exec rake db:migrate db:test:clone'
alias rordr='bundle exec rake db:rollback' alias rordr='bundle exec rake db:rollback'
alias rordR='bundle exec rake db:reset'
alias rorg='bundle exec rails generate' alias rorg='bundle exec rails generate'
alias rorl='tail -f "$(ruby-app-root)/log/development.log"' alias rorl='tail -f "$(ruby-app-root)/log/development.log"'
alias rorlc='bundle exec rake log:clear' alias rorlc='bundle exec rake log:clear'

Loading…
Cancel
Save