Created
November 23, 2015 06:55
-
-
Save dimasjt/a567fa002dd8dbe3194b to your computer and use it in GitHub Desktop.
query object with type data array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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