How can I execute a complex MySQL query in Rails while using ActiveRecord

welcome to shbcf.ru