【发布时间】:2014-03-19 22:52:04
【问题描述】:
我在数据库中有一个字段(可悲地)序列化为 Yaml。
下表是字段定义:
class Account < Sequel::Model
include ModelManager
plugin :serialization
serialize_attributes :yaml, :billing_info
我真的很想将其转换为新的 json 类型,但我们仍在使用 postgres 9.2.6。
在我可以迁移之前,我是否可以查询这些数据?
该字段包含一个空定义,如下所示:
--- !ruby/object:BillingInfo {}
或者有这样的数据:
--- !ruby/object:BillingInfo
gateway_identifier: blah
organisation: blah
billing_email: blah
reference: blah
phone: blah
country: blah
vat: blah
subscription: blah
【问题讨论】:
标签: postgresql psql