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
.
…run the console in a sandbox—meaning that all your database changes are completely reverted when you exit the console.
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.