mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 05:40:08 +00:00
Add an alias for Rails console sandbox (#5316)
The command ‘rails console —sandbox’ loads our Rails application, connects to the database and automatically starts a database transaction. All database operations performed within this console session are rolled back upon leaving the console. Reference - https://www.codeschool.com/blog/2014/06/17/rails-console-sandbox/
This commit is contained in:
parent
e9793fc199
commit
836fe31385
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ alias -g RET='RAILS_ENV=test'
|
|||
|
||||
# Rails aliases
|
||||
alias rc='rails console'
|
||||
alias rcs='rails console --sandbox'
|
||||
alias rd='rails destroy'
|
||||
alias rdb='rails dbconsole'
|
||||
alias rg='rails generate'
|
||||
|
|
Loading…
Reference in a new issue