Use table_name for Ci::Build SQL queries

What does this MR do and why?

Similar to what we did in !100248 (merged).

It replaces the usage of ci_builds with Ci::Build.quoted_table_name because we're planning to partition that table and it will be renamed to p_ci_builds.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Max Orefice

Merge request reports

Loading