average(column_name, options = {})
Instance Public methods
Calculates the average value on a given column. Returns nil
if
there's no row. See calculate
for examples with options.
Person.average(:age) # => 35.8
Calculates the average value on a given column. Returns nil
if
there's no row. See calculate
for examples with options.
Person.average(:age) # => 35.8
Please login to continue.