Today I Learned

Giant Monkeys Learning

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 --sandbox

Straight from the docs.

It’s not a good idea to use this in production, though.