Codeminer42's Engineering Blog
ActiveRecord

Using ActiveRecord to create atomic transactions
Imagine the following situation: You were asked to create a new wallet feature to an application. This wallet must allow money transfer between users. Basically, you take money from an…