I\'m trying to write LIKE query.
I read that pure string quires aren\'t safe, however I couldn\'t find any documentation that explain how to write safe LIKE Hash Que
For PostgreSQL it will be
Foo.where("bar ILIKE ?", "%#{query}%")