From Rails 3 0 to Rails Edge
summary
A 15‑year Rails monolith (Finn/Intercom) grows to ~4.5M LOC with hundreds of engineers and a 25 billion‑row conversations table; upgrades force 226 unique monkey patches (peaking 133 live) until a push to run Rails Edge with weekly upgrades lets changes be small and reversible. Major migration moves 330 TB across 17 databases to PlanetScale, exposes gaps (query constraints, cache format, memcached sizing) and drives incremental fixes to ActiveRecord, sharding, and CI to keep production stable.
AI-written summary · about
chapters (12)
- 0:00Introduction to Rails upgrades
- 2:21Why upgrade dependencies
- 3:03Early Rails upgrades at Finn
- 5:53Rails 4.2 upgrade struggles
- 9:43Monkey patches and sharding challenges
- 12:51Building an upgrade strategy
- 15:38Monkey patches as tech debt
- 18:47Query constraints and data migration
- 21:40Cache format deprecation incident
- 23:26Upgrading to Rails 7.2 and 8.0
- 24:49Running Rails Edge at Finn
- 27:16Key lessons from 15 years
