Re-Add `Limitable` to project and group CI variables
What does this MR do and why?
This MR adds the Limitable
module to Ci::Variable
and Ci::GroupVariable
, which enforces the plan limits for group and project CI variables.
Limitable
was first added in !106213 (merged), but that was reverted because it broke master. This MR fixes the issue that broke master by avoiding cross-database queries.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #373289 (closed)