In this episode we show you how to implement a state machine using the active record enum. State machines make it simple to manage state. We can issue events that do certain things before or after changing one state to another.