Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"script/console" vs. "script/console --sandbox"

What's the difference between just firing up a rails console with script/console and a rails console in sandbox mode with script/console --sandbox.

like image 872
Lee McAlilly Avatar asked Jul 27 '10 04:07

Lee McAlilly


1 Answers

In sandbox mode, any database changes made while in the console will be reverted when you exit the console.

This is different to the regular console where all database changes will remain when you exit.

like image 126
Parker McGee Avatar answered Oct 16 '22 10:10

Parker McGee