Building Bulletproof State Machines: Migrations, Locking, and Audit Trails in Rails
Implicit state is a breeding ground for bugs. We'll refactor a typical Rails model to use a production-ready state machine, covering migrations, race conditions, testing, and audit trails to make your code safer and easier to reason about.
Read article →