ActiveRecord is Still Magical
summary
A walk through concrete ActiveRecord behaviors: failing tests due to deterministic test order (3,684 tests run), a surprising has_many through where+create bug that inserts only the child because a CollectionProxy becomes a Relation, default_scope quirks and how unscoped or build_default_scope behaves, differences in where-merging between Rails 3 and 4, autosave and inverse_of identity fixes, and a Rails 4 merge/joins implementation that fixes broken scope merging; patches and test advice for multiple databases are discussed.
AI-written summary · about
chapters (6)
related talks
21mActiveRecord can't do it? Arel can!
25mActiveRecord can't do it? Arel can!
29mPutting Rails in a corner: Understanding database isolation
20mCRUD! The Consequences of Not Understanding How ActiveRecord ...
01h 01mClosing Keynote
32mReflecting on Active Record Associations
01h 52mBuild High Performance Active Record Apps
01h 52mBuild High Performance Active Record Apps
