I have one table called posts
create_table "posts", force: :cascade do |t|
t.text "values"
end
My record values are
#<Post id: 1, values: {"p1"=>"1", "p2"=>"xyz"}>
#<Post id: 2, values: {"p1"=>"1", "p2"=>"abc"}>
I want to find record from post where values[:p2] = "abc"