So you need to store some JSON blobs in your database. What do you do? You have plenty of options these days. You can serialize a hash into the database. You can reach for a document store like mongodb. Or, you can lean on rails 4 postgres json data type support.
If you haven't yet upgraded to rails 4, go ahead and do that now, I'll wait...
tick, tock, looks at watch
Jokes aside, it's totally worth it.
Anywho, now that we are on rails 4, let's go ahead and stuff some JSON into the database.