When to Write Database Migration Scripts: Right Away or Later?
Introduction
One of the most common debates among backend developers, especially when starting a new project with PostgreSQL and an ORM, is: "Should we create migration scripts from the beginning, or wait until the schema stabilizes?"
The answer is not a simple yes or no. It depends heavily