easily create unions and intersections in ActiveRecord.