I am running rails 4.2 with a PG database.
I have an item stored in a database such as (model Item
):
:something => ["1", "2", "3"]
I would like to get Item.where(:something.include? => "3")
Obviously, this does not work - but how are you going to do it on rails?
source share