Refactor Rails aliases
This commit is contained in:
parent
3ec4fff033
commit
abfa69fc01
|
@ -6,20 +6,21 @@ Defines [Ruby on Rails][1] aliases.
|
||||||
Aliases
|
Aliases
|
||||||
-------
|
-------
|
||||||
|
|
||||||
- `rc` starts the Rails console.
|
- `ror` is short for `rails`.
|
||||||
- `rdc` starts the Rails console connected to the database.
|
- `rorc` starts the Rails console.
|
||||||
- `rdm` migrates the database.
|
- `rordc` starts the Rails console connected to the database.
|
||||||
- `rdM` migrates the database and recreates the test database.
|
- `rordm` migrates the database.
|
||||||
- `rdr` rolls the database schema back to the previous version.
|
- `rordM` migrates the database and recreates the test database.
|
||||||
- `rg` generates new code.
|
- `rordr` rolls the database schema back to the previous version.
|
||||||
- `rl` displays the log.
|
- `rorg` generates new code.
|
||||||
- `rlc` truncates logs to zero bytes.
|
- `rorl` displays the log.
|
||||||
- `rp` installs a plugin.
|
- `rorlc` truncates logs to zero bytes.
|
||||||
- `rr` runs code in the application environment.
|
- `rorp` installs a plugin.
|
||||||
- `rs` starts the Rails server.
|
- `rorr` runs code in the application environment.
|
||||||
- `rsd` starts the Rails server with the debugger.
|
- `rors` starts the Rails server.
|
||||||
- `rx` destroys newly generated code.
|
- `rorsd` starts the Rails server with the debugger.
|
||||||
|
- `rorx` destroys newly generated code.
|
||||||
|
|
||||||
Authors
|
Authors
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
|
@ -16,19 +16,20 @@ fi
|
||||||
# Aliases (Compatible with Rails 2)
|
# Aliases (Compatible with Rails 2)
|
||||||
#
|
#
|
||||||
|
|
||||||
alias rc='_rails-command console'
|
alias ror='rails'
|
||||||
alias rdc='_rails-command dbconsole'
|
alias rorc='_rails-command console'
|
||||||
alias rdm='rake db:migrate'
|
alias rordc='_rails-command dbconsole'
|
||||||
alias rdM='rake db:migrate db:test:clone'
|
alias rordm='rake db:migrate'
|
||||||
alias rdr='rake db:rollback'
|
alias rordM='rake db:migrate db:test:clone'
|
||||||
alias rg='_rails-command generate'
|
alias rordr='rake db:rollback'
|
||||||
alias rl='tail -f log/development.log'
|
alias rorg='_rails-command generate'
|
||||||
alias rlc='rake log:clear'
|
alias rorl='tail -f log/development.log'
|
||||||
alias rp='_rails-command plugin'
|
alias rorlc='rake log:clear'
|
||||||
alias rr='_rails-command runner'
|
alias rorp='_rails-command plugin'
|
||||||
alias rs='_rails-command server'
|
alias rorr='_rails-command runner'
|
||||||
alias rsd='_rails-command server --debugger'
|
alias rors='_rails-command server'
|
||||||
alias rx='_rails-command destroy'
|
alias rorsd='_rails-command server --debugger'
|
||||||
|
alias rorx='_rails-command destroy'
|
||||||
|
|
||||||
#
|
#
|
||||||
# Functions
|
# Functions
|
||||||
|
|
Loading…
Reference in a new issue