rails-migration
CommunityEnforce UUID Rails migrations with indexes
Authorsamrocks03
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Standardizes Rails migrations by enforcing UUID primary keys, a gen_random_uuid() default, and explicit, consistently named indexes across tables.
Core Features & Use Cases
- UUID Primary Keys with pgcrypto and a uid column defaulting to gen_random_uuid()
- Explicitly named indexes for all critical columns (e.g., index_<table>on<column>)
- Foreign keys as UUIDs using *_uid suffix; avoid t.references for UUID tables
- Array columns with default [] for PostgreSQL denormalized lists
- Boolean columns with explicit defaults and timestamps included
- Bulk table creation via create_table bulk: true for performance
- Guidance for common migration tasks: add_column, create_table, add_index
Quick Start
Enable the pgcrypto extension and create new tables with a uid primary key defaulting to gen_random_uuid(), plus a unique index on uid.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: rails-migration Download link: https://github.com/samrocks03/shuttle-office-service/archive/main.zip#rails-migration Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.