Follow-up from "Reduce N+1 queries on deploy keys index page"
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
The following discussion from !20970 (merged) should be addressed:
-
@mayra-cabrera started a discussion: (+3 comments) Do we know why we can't do
project.deploy_keys?🤔
We need a unique index on DeployKeysProject to enforce the unique validation:
validates :deploy_key_id, uniqueness: { scope: [:project_id], message: "already exists in project" }
Edited by 🤖 GitLab Bot 🤖