Skip to content

Commit 21c9bb4

Browse files
committed
0.20 release notes
1 parent 910a82d commit 21c9bb4

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

0.20_UPGRADE

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
0.20 will require some minor code upgrades.
2+
3+
1. Note the exception changes in HISTORY. Certain exceptions are now scoped under the BSON
4+
module; if you're catching these, you will need to modify your code.
5+
6+
2. The BSON types are now scoped under the BSON module.
7+
8+
3. Note that mongo_ext no longer exists. The new gems are bson and bson_ext.
9+
10+
4. Indexes on GridFS chunks collections should be unique. If you have existing GridFS
11+
collections, you should drop the current index and replace with a unique one. Before you do this,
12+
make sure that index doesn't exist; no need to go through process unnecessarily.
13+
If you do need to create the index, once you have the chunks collection, here are the commands you can run:
14+
15+
@chunks.drop_index('files_id_1_n_1')
16+
@chunks.create_index([['files_id', Mongo::ASCENDING], ['n', Mongo::ASCENDING]], :unique => true)

HISTORY

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
0.20
2+
If upgrading from a previous version of the Ruby driver, please read these notes carefully,
3+
along with the 0.20_UPGRADE doc.
4+
25
* Support for new commands:
36
* Collection#find_and_modify
47
* Collection#stats

0 commit comments

Comments
 (0)