Fix migration_template error in generator