Converts hash to/from JSON
def convert_type JSON end
def converted?(value) value.is_a?(db_type) end
def db_type String end
def to_db(value) value.to_json end
def to_ruby(value) JSON.parse(value, quirks_mode: true) end
Converts hash to/from JSON
def convert_type JSON end
def converted?(value) value.is_a?(db_type) end
def db_type String end
def to_db(value) value.to_json end
def to_ruby(value) JSON.parse(value, quirks_mode: true) end