[Rails5] Fix `undefined method 'arel_table' for Ci::Group:Class` error
What does this MR do?
Fixes rails5
CI errors like:
1) Group#secret_variables_for when the ref is not protected contains only the secret variables
Failure/Error: variables = Ci::GroupVariable.where(group: list_of_ids)
NoMethodError:
undefined method `arel_table' for Ci::Group:Class
Are there points in the code the reviewer needs to double check?
No.
Why was this MR needed?
Migration to Rails 5.0.
Screenshots (if relevant)
No.
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added -
Tests added for this feature/bug - Review
-
Has been reviewed by UX -
Has been reviewed by Frontend -
Has been reviewed by Backend -
Has been reviewed by Database
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Squashed related commits together -
Internationalization required/considered -
End-to-end tests pass ( package-and-qa
manual pipeline job)
What are the relevant issue numbers?
Edited by blackst0ne