calculate_all method for aggregate functions in Active Record
翻译 - Active Record中聚合函数的calculate_all方法