• Thong Kuah's avatar
    Optimise query for #previous_environment_deployment · 15bfd724
    Thong Kuah authored
    Rewrite to a much simpler query
    
    - No need to search by name, unique index guarantees there can only be
    one environment by that name for a project
    - Also no need to have where claus for deployments.project_id. An
    environment **must** belong to the same project_id anyway.
    15bfd724
optimise_previous_environment_deployment.yml 146 Bytes