Rails выполняет SQL
results = ActiveRecord::Base.connection.exec_query(sql)
Old-fashioned Owl
results = ActiveRecord::Base.connection.exec_query(sql)