[All codes here are samples] I have the Book model with the info field as hstore.
class Book < ActiveRecord::Base
serialize :info, ActiveRecord::Coders::NestedHstore
end
and the info field is filled like this:
info: {"tags" => ["tag one", "tag two"]}
I need a query that I can find the books that contains the tag "tag one". How can I accomplish this?