Hypothetically, I have a Room model that belongs to a Building model. Buildings has a has_many relationship with categories.
I'm trying to figure out how to index the Room model so that a search for category_id = 1 will return any room, in any building that happens to have that category assigned to it. Again, a building can have multiple categories.
thanks!