mokeypatching activerecord postgres json array bug