module ActiveRecord::Calculations
def maximum(column_name)
#calculate for examples with options.
with the same data type of the column, or +nil+ if there's no row. See
Calculates the maximum value on a given column. The value is returned
def maximum(column_name) calculate(:maximum, column_name) end