Refactor Rails aliases

main
Sorin Ionescu 12 years ago
parent 3ec4fff033
commit abfa69fc01

@ -6,19 +6,20 @@ Defines [Ruby on Rails][1] aliases.
Aliases
-------
- `rc` starts the Rails console.
- `rdc` starts the Rails console connected to the database.
- `rdm` migrates the database.
- `rdM` migrates the database and recreates the test database.
- `rdr` rolls the database schema back to the previous version.
- `rg` generates new code.
- `rl` displays the log.
- `rlc` truncates logs to zero bytes.
- `rp` installs a plugin.
- `rr` runs code in the application environment.
- `rs` starts the Rails server.
- `rsd` starts the Rails server with the debugger.
- `rx` destroys newly generated code.
- `ror` is short for `rails`.
- `rorc` starts the Rails console.
- `rordc` starts the Rails console connected to the database.
- `rordm` migrates the database.
- `rordM` migrates the database and recreates the test database.
- `rordr` rolls the database schema back to the previous version.
- `rorg` generates new code.
- `rorl` displays the log.
- `rorlc` truncates logs to zero bytes.
- `rorp` installs a plugin.
- `rorr` runs code in the application environment.
- `rors` starts the Rails server.
- `rorsd` starts the Rails server with the debugger.
- `rorx` destroys newly generated code.
Authors
-------

@ -16,19 +16,20 @@ fi
# Aliases (Compatible with Rails 2)
#
alias rc='_rails-command console'
alias rdc='_rails-command dbconsole'
alias rdm='rake db:migrate'
alias rdM='rake db:migrate db:test:clone'
alias rdr='rake db:rollback'
alias rg='_rails-command generate'
alias rl='tail -f log/development.log'
alias rlc='rake log:clear'
alias rp='_rails-command plugin'
alias rr='_rails-command runner'
alias rs='_rails-command server'
alias rsd='_rails-command server --debugger'
alias rx='_rails-command destroy'
alias ror='rails'
alias rorc='_rails-command console'
alias rordc='_rails-command dbconsole'
alias rordm='rake db:migrate'
alias rordM='rake db:migrate db:test:clone'
alias rordr='rake db:rollback'
alias rorg='_rails-command generate'
alias rorl='tail -f log/development.log'
alias rorlc='rake log:clear'
alias rorp='_rails-command plugin'
alias rorr='_rails-command runner'
alias rors='_rails-command server'
alias rorsd='_rails-command server --debugger'
alias rorx='_rails-command destroy'
#
# Functions

Loading…
Cancel
Save