migration best practice

Hi, I'm wondering how to add a column with a notNull() restriction in a table that already contains records, I mean the records present before adding this column will automatically not respect the notnull restriction which will generate errors during migration, is there a good way to handle this case?
Was this page helpful?