← Graph

Migrate schemas first, then data

takeaway 2 connections

Avoid a big-bang cutover. Keep using Postgres while replacing unsupported types with Active Record custom types, adopting Solid Stack gems (whose SQLite files live alongside Postgres), and dropping/rewriting Postgres-specific check constraints. Deploy each step to staging, test it, and only then swap the database adapter and run the data migration script. Every step remains reversible.

type
recommendation
takeaway Migrate schemas first, then data
about
Concrete guidance for staging the migration.
takeaway Migrate schemas first, then data
from_talk
Key methodological takeaway.

Provenance