Backend Migrations

Create and manage database migrations with reversible changes, zero-downtime deployments, and proper version control. Use this skill when creating database migration files, modifying database schemas, adding or removing tables or columns, creating indexes, or managing database versioning. When working with migration files (e.g., `*_migration.rb`, `*.migration.ts`, `alembic/versions/*.py`), schema changes, or database rollback procedures. When implementing backwards-compatible database changes or separating schema migrations from data migrations.

majiayu000 f007972 2 files · 2.2 KB Updated 567 repo stars

File contents

Backend Migrations

When to use this skill

  • When creating new database migration files
  • When editing existing migration files to add rollback/down methods
  • When adding, removing, or modifying database tables
  • When adding, removing, or modifying database columns
  • When creating or dropping database indexes
  • When implementing zero-downtime deployment strategies
  • When separating schema changes from data migrations
  • When working with migration version control
  • When planning backwards-compatible database changes
  • When working in migration directories or with migration tools (e.g., Alembic, ActiveRecord, Prisma Migrate, Flyway)

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

majiayu000/claude-skill-registry-data/tree/main/data/backend-migrations commit f007972bfb

Frequently asked questions

npx skillmds add majiayu000/backend-migrations