3 ms·
> You can't compile if the schema changes without you knowing about it That's why you don't normally compile against the production database. You version contr
by piaste 5y ago
> You can't compile if the schema changes without you knowing about it
That's why you don't normally compile against the production database. You version control the database schema and use it to create a local database to compile against. This way you can also test potential future migrations using branches.
Compiling against the production database should be done separately, as a kind of free integration test (usually in CI).