| name | Backend Migrations |
| description | Create database migrations following Laravel best practices with reversible up/down methods, focused single-purpose changes, proper index management, and clear naming conventions. Use this skill when creating new database tables, adding or modifying columns in existing tables, creating or dropping indexes, implementing foreign key constraints, renaming tables or columns, or managing database schema changes. This skill applies when working on migration files in database/migrations/ directory, generating new migrations via artisan commands, or ensuring zero-downtime deployments with backwards-compatible schema changes. |
Backend Migrations
When to use this skill
- When creating new database tables for models or features
- When adding or modifying columns in existing tables
- When creating or dropping database indexes for performance optimization
- When implementing foreign key constraints for data integrity
- When renaming tables or columns in the database schema
- When managing database schema changes across environments
- When working on migration files in database/migrations/ directory
- When generating new migrations via
php artisan make:migrationcommands - When ensuring zero-downtime deployments with backwards-compatible changes
- When separating schema changes from data migrations
- When implementing reversible migrations with proper down() methods
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle backend migrations.
Instructions
For details, refer to the information provided in this file: backend migrations