postgres How To: Migrate from yaml to json datatype in postgres Recently, I came across a feature request which required me to query on a field in versions table provided by papertrail gem in ruby. You can read more about it here.It was