News for hackers. Stuff that matters.
Re:What ORMs have taught me: just learn SQL (2014) by slicebo123 on Sunday September 22, 2019 @07:44PM (#21044743)
You can execute a "non-model" query like so:

results = ActiveRecord::Base.connection.execute(sql)

Re:What ORMs have taught me: just learn SQL (2014) by philwelch on Saturday September 28, 2019 @02:29PM (#21102021)
The API docs don’t make it clear whether that’s still possible so I didn’t mention it explicitly, but I have done that before and that’s what I was alluding to with the “array of hash tables” comment.