Active Record Associations

Expert guidance for defining and using Active Record associations in Rails. Use when creating associations, defining model relationships, troubleshooting foreign keys, fixing N+1 queries, setting up belongs_to, has_many, has_one, has_many :through, polymorphic associations, self-referential joins, join tables, counter caches, dependent options, inverse_of, eager loading, or any question about how models relate to each other.

omacom 98bbd54 7 files · 42.0 KB Updated

File contents

omacom/omarchy-theme-marketplace/tree/main/.claude/skills/active-record-associations commit 98bbd547f2

Frequently asked questions

npx skillmds@latest add omacom/active-record-associations