Moved migration code to the fileMigrationStrategy