rails-active-record-patterns
Installation
SKILL.md
Rails Active Record Patterns
Master Active Record patterns for building robust Rails models with proper associations, validations, scopes, and query optimization.
Overview
Active Record is Rails' Object-Relational Mapping (ORM) layer that connects model classes to database tables. It implements the Active Record pattern, where each object instance represents a row in the database and includes both data and behavior.
Installation and Setup
Creating Models
# Generate a model with migrations
rails generate model User name:string email:string:uniq