http://api.rubyonrails.org/classes/ActiveRecord/Calculations.html#method-i-average