activerecord

Installation
SKILL.md

ActiveRecord

Comprehensive guide to ActiveRecord associations, queries, validations, and database optimization in Rails.

Associations

Association Types

Type Description
belongs_to Foreign key on this model's table
has_one Foreign key on other model's table (singular)
has_many Foreign key on other model's table (plural)
has_many :through Many-to-many via join model
has_one :through One-to-one via join model
has_and_belongs_to_many Many-to-many via join table (no model)

Basic Associations

Related skills

More from bastos/ruby-plugin-marketplace

Installs
1
GitHub Stars
2
First Seen
Apr 16, 2026