A routine gem update led to a major issue where 474 new subscriptions were created, resulting in $73,271.36 in unexpected charges. The problem was caused by a change in the behavior of the Mongoid library, which was not properly accounted for in the application's code. The company rolled back the update, refunded the affected customers, and apologized for the mistake. The incident highlights the importance of careful testing and consideration of dependency updates.