 		local.rv = local.rv & "#Chr(13)#------- " & local.migration.cfcfile & " #RepeatString("-", Max(5, 50-Len(local.migration.cfcfile)))##Chr(13)#";
 		request.$wheelsMigrationOutput = "";
 		request.$wheelsMigrationSQLFile = "#this.paths.sql#/#local.migration.cfcfile#_redo.sql";
-		if (application.wheels.writeMigratorSQLFiles) {
+		if (local.settings.writeMigratorSQLFiles) {
 			FileWrite(request.$wheelsMigrationSQLFile, "");
 		}
-		if (application.wheels.allowMigrationDown) {
+		if (local.settings.allowMigrationDown) {
 			local.migration.cfc.down();
 		}
 		local.migration.cfc.up();

 * Inserts a record to flag a version as migrated.
 */
private void function $setVersionAsMigrated(required string version) {
	$query(
		datasource=application.wheels.dataSourceName,
		sql="INSERT INTO #application.wheels.migratorTableName# (version) VALUES ('#$sanitiseVersion(arguments.version)#')"
	);
}


							local.rv = local.rv & "#Chr(13)#-------- " & local.migration.cfcfile & " #RepeatString("-",Max(5,50-Len(local.migration.cfcfile)))##Chr(13)#";
							request.$wheelsMigrationOutput = "";
							request.$wheelsMigrationSQLFile = "#this.paths.sql#/#local.migration.cfcfile#_up.sql";
							if (local.settings.writeMigratorSQLFiles) {
								FileWrite(request.$wheelsMigrationSQLFile, "");
							}
							local.migration.cfc.up();
