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.

  • Close this issue

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 Sep 26, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading