diff --git a/modules/rails/README.md b/modules/rails/README.md index 19bea1d8..2aad717a 100644 --- a/modules/rails/README.md +++ b/modules/rails/README.md @@ -12,6 +12,7 @@ Aliases - `rordm` migrates the database. - `rordM` migrates the database and recreates the test database. - `rordr` rolls the database schema back to the previous version. + - `rordR` resets the database schema (does db:drop db:setup). - `rorg` generates new code. - `rorl` displays the log. - `rorlc` truncates logs to zero bytes. diff --git a/modules/rails/init.zsh b/modules/rails/init.zsh index 44b53e90..585bcae0 100644 --- a/modules/rails/init.zsh +++ b/modules/rails/init.zsh @@ -25,6 +25,7 @@ alias rordc='bundle exec rails dbconsole' alias rordm='bundle exec rake db:migrate' alias rordM='bundle exec rake db:migrate db:test:clone' alias rordr='bundle exec rake db:rollback' +alias rordR='bundle exec rake db:reset' alias rorg='bundle exec rails generate' alias rorl='tail -f "$(ruby-app-root)/log/development.log"' alias rorlc='bundle exec rake log:clear'