diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/nodes/sql_literal.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/nodes/sql_literal.rb b/lib/arel/nodes/sql_literal.rb index 526d088449..6471469d9f 100644 --- a/lib/arel/nodes/sql_literal.rb +++ b/lib/arel/nodes/sql_literal.rb @@ -4,6 +4,10 @@ module Arel def count distinct = false Count.new [self], distinct end + + def maximum + Nodes::Max.new [self], Nodes::SqlLiteral.new('max_id') + end end end end |