handle new activerecord postgres result set class for rails v3+

Do-over of previous PR :smile: