From 76fca40eb0d43a425dde3c3183912b3bc8e02c05 Mon Sep 17 00:00:00 2001 From: Mohammad Habbab Date: Wed, 4 May 2016 10:15:06 +0800 Subject: Add Support for GroupBy Cube, Rollup and Grouping Set Syntax for PostgreSQL Visitor --- lib/arel/nodes/unary.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/arel/nodes') diff --git a/lib/arel/nodes/unary.rb b/lib/arel/nodes/unary.rb index a0062ff5be..50946980b4 100644 --- a/lib/arel/nodes/unary.rb +++ b/lib/arel/nodes/unary.rb @@ -22,15 +22,19 @@ module Arel %w{ Bin + Cube + DistinctOn Group + GroupingElement + GroupingSet Limit + Lock Not Offset On Ordering + RollUp Top - Lock - DistinctOn }.each do |name| const_set(name, Class.new(Unary)) end -- cgit v1.2.3