Skip to content

Instantly share code, notes, and snippets.

@biske
Created January 21, 2016 14:36
Show Gist options
  • Save biske/69e3e624c87907d1954e to your computer and use it in GitHub Desktop.
Save biske/69e3e624c87907d1954e to your computer and use it in GitHub Desktop.
To find Company which name contains Google run:
$ Company.where("name ilike '%Google%'")
Or even better:
$ Company.where("name ilike '%Google%'").pluck(:name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment