How to create data sandbox in rake tasks in Rails

Sometimes, we need data sandbox in take tasks such as load testing. When I was assigned to the development of load testing, I used this way.

In this case, a user is created, but the data is deleted after rollback_transaction.

My LinkedIn account is below! Please contact me!

https://www.linkedin.com/in/tomoharu-tsutsumi-56051a126/

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store