Rollback all database changes on exit

Being a Rails developer, Lot of time I spend on rails console. Ever thought of rollback all changes you have done on console? Yes? Here is a quick tip for you ;)

  rails c --sandbox
  Loading development environment in sandbox.
  Any modifications you make will be rolled back on exit.

You can also use -s as a flag instead of –sandbox. Awesome!