managing-dev-migrations

Manage Prisma schema evolution with migrate dev and db push workflows.

Updated Nov 21, 2025
One-click install
npx skills add https://github.com/djankies/claude-configs --skill managing-dev-migrations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: managing-dev-migrations
Source: https://github.com/djankies/claude-configs/tree/main/prisma-6/skills/managing-dev-migrations
Command: npx skills add https://github.com/djankies/claude-configs --skill managing-dev-migrations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill clarifies when to use Prisma migrate dev versus db push during local development, helping teams manage schema changes efficiently without risking broken migrations.

Core Features & Use Cases

  • Decision Criteria: Guidance on production-ready migrations vs rapid prototyping.
  • Migration Workflows: Step-by-step patterns for creating, reviewing, and applying migrations.
  • Prototyping Patterns: Fast iteration with db push for throwaway experiments.

Quick Start

Use migrate dev for structured evolution; use db push for quick prototyping when migrations history isn’t required.

Frequently Asked Questions about managing-dev-migrations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
When should I use Prisma migrate dev vs db push for local development?

Use migrate dev for versioned, production-ready migrations that track schema history; use db push for rapid prototyping when you don't need migration records. Migrate dev creates timestamped migration files suitable for team collaboration, while db push syncs your schema instantly without history, ideal for throwaway experiments.

How do I review SQL before applying a Prisma migration?

Run prisma migrate dev with the --create-only flag to generate the migration file without applying it. This lets you inspect the SQL before executing it against your database, reducing risk of unintended schema changes.

Can I edit generated Prisma migrations after creation?

Yes. After generating a migration with migrate dev, you can edit the SQL file in your migrations folder before applying it. This is useful for adding custom logic or refining auto-generated SQL to match your exact requirements.

How do I switch between db push and migrate dev workflows?

Both workflows operate on the same schema; switch by choosing your command based on your current need. Use db push for exploratory changes, then transition to migrate dev when ready to version migrations for team deployment or production.

What's the best workflow for team collaboration with Prisma schema changes?

Use migrate dev to create versioned migrations that team members can pull and apply consistently. This creates a shared migration history, prevents conflicts, and ensures all developers apply schema changes in the same order.

Does db push work for managing schema versions in version control?

No. Db push syncs your schema without creating migration files, so it doesn't produce version-controlled records. For tracked schema evolution across environments, use migrate dev instead.