Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Array contains operator support #67
and 1 other
commented on an outdated diff
Feb 18, 2013
|+elements of an array are within another.|
|+ARRAY[1,2,3] @> ARRAY[3,4]|
|+ARRAY[1,2,3] @> ARRAY[2,3]|
|+Postgres_ext extends the `ActiveRecord::Relation.where` method by|
|+adding an `array_contains` method. To make a contains query, you|
|+User.where.array_contains(:nick_names => ['Bob', 'Fred'])|