aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/attributes/attribute.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/attributes/attribute.rb')
-rw-r--r--lib/arel/attributes/attribute.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/attributes/attribute.rb b/lib/arel/attributes/attribute.rb
index af9bbdd478..bb85af4634 100644
--- a/lib/arel/attributes/attribute.rb
+++ b/lib/arel/attributes/attribute.rb
@@ -16,6 +16,10 @@ module Arel
def sum
Nodes::Sum.new [self], Nodes::SqlLiteral.new('sum_id')
end
+
+ def maximum
+ Nodes::Max.new [self], Nodes::SqlLiteral.new('max_id')
+ end
end
class String < Attribute; end