aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-04-25 12:01:22 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-04-25 12:01:22 -0700
commit30c7f0e4b365c85b7a910a0553ed936be56b9c4b (patch)
tree4978d35b0f41c4bd88bf367697ae8ffac9980a7b /lib
parentf72989de5b3b3cfb6e6e639b57c3a3bebb2de8f2 (diff)
downloadrails-30c7f0e4b365c85b7a910a0553ed936be56b9c4b.tar.gz
rails-30c7f0e4b365c85b7a910a0553ed936be56b9c4b.tar.bz2
rails-30c7f0e4b365c85b7a910a0553ed936be56b9c4b.zip
add a factory method for production LOWER functions
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/factory_methods.rb6
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