ActiveRecord::Base.connection.execute(sql)
The results are not typecasted so they are all strings as an example
ActiveRecord::Base.connection.execute(sql).entries
=> [{"id" => "1", "length" => "120", "content" => "something"},{"id" => "2", "length" => "200", "content" => "blahblah"}]
Is it possible to execute raw transactions in activerecord and return typecasted results?