Skip to content

Commit c73f53d

Browse files
committed
MONGOID-4576 drop_dups: mark deprecated
1 parent 7207109 commit c73f53d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/tutorials/mongoid-indexes.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ Indexes can be run in the background in cases where they may take some time:
6060
index({ ssn: 1 }, { unique: true, background: true })
6161
end
6262

63-
For unique indexes that are defined for a column that might already have duplicate
64-
values, you can drop the duplicate entries:
63+
*Deprecated:* When using MongoDB 2.6, you can drop the duplicate entries
64+
for unique indexes that are defined for a column that might
65+
already have duplicate values by specifying the ``drop_dups`` option:
6566

6667
.. code-block:: ruby
6768

@@ -71,6 +72,8 @@ values, you can drop the duplicate entries:
7172
index({ ssn: 1 }, { unique: true, drop_dups: true })
7273
end
7374

75+
The ``drop_dups`` option has been `removed as of MongoDB 3.0 <https://docs.mongodb.com/manual/release-notes/3.0-compatibility/#remove-dropdups-option>`_.
76+
7477
For geospatial indexes, make sure the field you are indexing is an Array.
7578

7679
.. code-block:: ruby

0 commit comments

Comments
 (0)