Alternative schema migration client for Prisma ORM, built as a drop-in replacement for prisma migrate CLI. Current stable version is 4.0.3, with frequent releases. It uses prisma migrate under the hood for schema parsing but provides a more intuitive API, better control over migrations, and Django-like workflow. Supports PostgreSQL, MySQL, and SQLite. Requires Node >=14.17 and peer dependencies @prisma/client and prisma ^4.x.
npm install prisma-raysNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows initializing prisma-rays with config, pushing schema, creating a migration, and applying it.
Upgrade peer dependencies to ^4.x.
Set SHADOW_DATABASE_URL in environment or config.
Delete old raysconfig.js and re-run init.
Replace 'npx rays prepare' with 'npx rays push'.
Stick to one migration tool; remove pre-existing migrations before switching.
Use `import rays from 'prisma-rays'` in an ESM context.
Use `import rays from 'prisma-rays'` (default import), not `import { rays } from 'prisma-rays'`.Run `npm install prisma --save-dev`.
Set `shadowDatabaseUrl` in raysconfig.js or provide via .env.