Specify inverse_of for project badges association
What does this MR do and why?
It specifies inverse_of
for project badges association. So when a project badge requests for a project it doesn't perform an SQL query: https://gitlab.com/gitlab-org/gitlab/blob/533dd374e9b6992da4b2cd3c1946fc6115b83d73/app/models/badges/project_badge.rb#L9
Edited by Igor Drozdov