diff options
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/factory_methods.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/arel/factory_methods.rb b/lib/arel/factory_methods.rb index 2ced1f8971..9fd0878ada 100644 --- a/lib/arel/factory_methods.rb +++ b/lib/arel/factory_methods.rb @@ -25,5 +25,11 @@ module Arel def grouping expr Nodes::Grouping.new expr end + + ### + # Create a LOWER() function + def lower column + Nodes::NamedFunction.new 'LOWER', [column] + end end end |