activerecord

Community

Master Rails ActiveRecord queries & associations.

Authorbastos
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Rails developers often struggle to design robust ActiveRecord models, implement correct associations, write efficient queries, and maintain data integrity through validations, migrations, and performance-conscious patterns.

Core Features & Use Cases

  • Associations: Model and optimize belongs_to, has_one, has_many, has_many through, and polymorphic relations with proper options and constraints.
  • Validations & Callbacks: Enforce data accuracy and lifecycle hooks to ensure consistency across models.
  • Queries & Eager Loading: Build expressive queries, apply scopes, and choose appropriate eager loading strategies to avoid N+1 problems.
  • Migrations & Performance: Plan safe schema changes, add indexes, and use batch updates for large datasets.

Quick Start

Design an ActiveRecord setup with a User that has_many :articles, includes validations, and uses an efficient query to fetch recent articles with their authors.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: activerecord
Download link: https://github.com/bastos/ruby-plugin-marketplace/archive/main.zip#activerecord

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.