From f451c7a124ace658dc388bd0b5d2c8e83b8a7f20 Mon Sep 17 00:00:00 2001 From: Lucas Menezes Date: Wed, 30 Jan 2019 00:27:33 -0200 Subject: [PATCH] Added some Rails aliases --- Cheatsheet.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Cheatsheet.md b/Cheatsheet.md index a1fa5e5..077b593 100644 --- a/Cheatsheet.md +++ b/Cheatsheet.md @@ -242,6 +242,35 @@ You also find these commands in Dash as a Cheat-sheet. | _sc-enable NAME_ | enable the NAME process to start at boot | | _sc-disable NAME_ | disable the NAME process at boot | + +## Rails + +### Rails Aliases + +| Alias | Command | +| :------- | :---------------------------- | +| _rc_ | rails console | +| _rcs_ | rails console --sandbox | +| _rd_ | rails destroy | +| _rdb_ | rails dbconsole | +| _rg_ | rails generate | +| _rgm_ | rails generate migration | +| _rp_ | rails plugin | +| _ru_ | rails runner | +| _rs_ | rails server | +| _rsd_ | rails server --debugger | +| _rsp_ | rails server --port | + + +### RAILS_ENV Aliases + +| Alias | Command | +| :------- | :---------------------------- | +| _RED_ | RAILS_ENV=development | +| _REP_ | RAILS_ENV=production | +| _RET_ | RAILS_ENV=test | + + ## Upgrade To upgrade .oh-my-zsh, run: ``` bash