How do you run an ad-hoc query that does not belong in any model? I
thought it was something like ActiveRecord::connection.find(“my
query…”), but I can’t seem to find the documentation on it. I know
I’ve seen it somewhere before, though.

How do you run an ad-hoc query that does not belong in any model? I
thought it was something like ActiveRecord::connection.find(“my
query…”), but I can’t seem to find the documentation on it. I know
I’ve seen it somewhere before, though.