Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Migrate during continuous deployment.

We use a staging environment, so CD deployed migrations are always run at least once before running on production.

Migrations have to be written so that currently deployed code will work after the migration. Eg, to rename a column, add+copy, deploy, then in a second migration drop the column.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: