module ActiveRecord::Calculations

def maximum(column_name)

Person.maximum(:age) # => 93

#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