-
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