Getting PG::GroupingError for ActiveRecord Query
I am getting this error PG::GroupingError when I try to run this query
Interaction.
order('interactions.created_at DESC').
joins({candidate: [:job,{application: :user}]}).
group('interactions.candidate_id')
What I'm trying to do is to group ...