#!/usr/bin/env ruby # If you get "unknown OID 705: failed to recognize type of ''. It will be treated as String." # it probably means that type of column could not be identified when retriving records # Example User.where("'something' as something") # Will results in unknown OID. However doing this: User.where("'something'::text as something") # Will just work. Casting is important, dude!