相关疑难解决方法(0)

ActiveRecord serialize using JSON instead of YAML

I have a model that uses a serialized column:

class Form < ActiveRecord::Base
  serialize :options, Hash
end
Run Code Online (Sandbox Code Playgroud)

Is there a way to make this serialization use JSON instead of YAML?

serialization activerecord json yaml ruby-on-rails

55
推荐指数
4
解决办法
4万
查看次数

标签 统计

activerecord ×1

json ×1

ruby-on-rails ×1

serialization ×1

yaml ×1