Skip to content

Commit 3e6fb33

Browse files
authored
Jonathans talk for march 2026 (#17)
* Jonathans talk for march 2026 * typos
1 parent 071d594 commit 3e6fb33

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
layout: post
3+
title: Polymorphic Association - The Good, the Bad and the Ugly
4+
date: 2026-03-16
5+
link:
6+
speakers:
7+
- name: Jonathan Stevens
8+
linkedin: jonathan-stevens-193287a
9+
---
10+
11+
When Active Record works, it's great.  Polymorphic associations in Active Record promise elegant flexibility: one interface, many possible models. When they work, they feel almost magical. But when your application grows and real‑world complexity sets in, that magic can quickly turn into confusion, broken queries, and performance headaches. We’ll explore where polymorphic associations shine, where they silently introduce technical debt, and why even experienced Rails developers can end up wrestling with unscoped queries, tricky joins, and hard‑to‑optimize relationships. We’ll walk through real examples of tangled polymorphic logic—and more importantly, show practical strategies to refactor, untangle, or even avoid these pitfalls entirely. By the end, you’ll know when to reach for polymorphism, when to run away from it, and what to do when your complex query simply refuses to cooperate. -

0 commit comments

Comments
 (0)