Skip to content

Instantly share code, notes, and snippets.

@dimasjt
Created November 23, 2015 06:55
Show Gist options
  • Save dimasjt/a567fa002dd8dbe3194b to your computer and use it in GitHub Desktop.
Save dimasjt/a567fa002dd8dbe3194b to your computer and use it in GitHub Desktop.
query object with type data array
Group.where("categories @> string_to_array(?, '')", ['Laut', 'Wisata']) # contain in
# http://www.postgresql.org/docs/9.1/static/functions-array.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment