mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add maximum to SqlLiteral.
This commit is contained in:
parent
84e8875c55
commit
b9402889ff
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue