Skip to content

Commit 630db7b

Browse files
amwestolfo
authored andcommitted
Support partial indexes.
Partial indexes were added in MongoDB 3.2 and ruby driver 2.2.
1 parent b3ea3c8 commit 630db7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/mongoid/indexable/validators/options.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ module Options
2626
:key,
2727
:sphere_version,
2828
:text_version,
29-
:version
29+
:version,
30+
:partial_filter_expression
3031
]
3132

3233
VALID_TYPES = [

0 commit comments

Comments
 (0)