I have the following:
create_table "events", options: "ENGINE=InnoDB DEFAULT CHARSET=latin1", force: :cascade do |t|
t.string "meta_data"
end
When I open up Valentina Studio and look at the events table I can see one record:
ID meta_data
1 {"action"=>"bla"}
When I call Event.last.meta_data I receive the following string:
"{\"action\"=>\"bla\"}
How can I get this string value without the escape characters? I've tried deep transforming and simply gsubbing but neither of these feel like I'm doing it right..
Thanks in advance