Sandboxed rails console
If you want to do some changes to your models in the console but want them to be rolled back after your session, just use
rails console --sandboxStraight from the docs.
It’s not a good idea to use this in production, though.
Tweet