I have a User table which
has_many :meetings, through: registrations
I would like to do an ActiveRecord query for something like this
User.where("meetings > 0")
But obviously there is no "meetings" column in my db. Which model should I add a class method on and what would that method look like? Thanks for your help.