I\'m trying to do something that I thought it would be simple but it seems not to be.
I have a project model that has many vacancies.
class Project &
I think there's a simpler solution:
Project.joins(:vacancies).distinct