Migrates if the task is a new one