My code is this
<Product id: 44, data: {:my_data=>{"1"=>"5", "2"=>"test", "3"=>"tes"}},
view_cout: 1>
How I can write code to search project from "my_data" key or value ?
I have search and found there is one way by hstore we can achieve it (
https://github.com/diogob/activerecord-postgres-hstore) but in this sense I
have to change current logic of storing data also I have to move the
current data to new fild if I use this.
Is there any good way which take less changes or if
not then what should I do to create filter for it.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/5bfdcb48-3ed6-4534-a42a-aa7db9966bf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.