rails/rails — pull request #16780 by viditn91 (2014-09-02 21:11:17+00:00)
Title: use correct operator in query based on JSON document

-- Brings out the difference between using '->' and '->>' in query based on JSON document
-- In the prescribed example a JSON object is being compared to a string
(raises error: PG::UndefinedFunction: ERROR: operator does not exist)
-- we can make use of '->>' to make sure that a string is returned