refactored migrationfile struct