You can use deployment_metadata_for(current_deployment_datetime) instead