New and Improved Features in Rails 8.1
summary
Shopify lands a set of concrete Rails 8.1 changes: Rails now substitutes SQL DEFAULT for nil primary keys in insert_all/upsert_all (PR submitted to upstream), a new Rails.events structured reporter API (PR coming soon) for queryable event consumers, model-level filtered attributes to hide sensitive fields from parameter logs (patch under review), a tests-without-assertions warning already in Rails 7.1, and an error reporter middleware with mutable context that composes classification, attribution, metrics, and logging and is extracted into a shared gem.
AI-written summary · about
chapters (6)
- 0:00Rails 8.1 features
- 1:31Postgres not null violations
- 6:12Structured event reporter
- 10:23Sensitive data in logs
- 15:41Testing your tests
- 23:05Error reporter middleware








