Apply db migration before syncing all the pods. It avoids triggering errors when running the migrate job.