Skip to content

Instantly share code, notes, and snippets.

@harssh
Created November 20, 2013 04:38
Show Gist options
  • Save harssh/7557821 to your computer and use it in GitHub Desktop.
Save harssh/7557821 to your computer and use it in GitHub Desktop.
command to open rails console in sandbox
The Sandbox
Sometimes it would be nice to open up a console session and mess around with the data to see what happens. But if you do that, the data’s messed up. The solution to that is to lunch the console with the --sandbox flag. When launched, you can handle the data, tweak it, and destroy it, all without fear of harming any of your data.
Rails Console Sandbox
rails console --sandbox
Loading development environment in sandbox (Rails 3.2.1)
Any modifications you make will be rolled back on exit
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment