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:
Mohnish G J 2016-09-20 08:21:50 +05:30 committed by Robby Russell
parent e9793fc199
commit 836fe31385

View file

@ -36,6 +36,7 @@ alias -g RET='RAILS_ENV=test'
# Rails aliases # Rails aliases
alias rc='rails console' alias rc='rails console'
alias rcs='rails console --sandbox'
alias rd='rails destroy' alias rd='rails destroy'
alias rdb='rails dbconsole' alias rdb='rails dbconsole'
alias rg='rails generate' alias rg='rails generate'