adding error handling for failed up migrations