Navigation
This version of the documentation is archived and no longer supported.
Compatibility
Ruby MongoDB Driver Compatibility
The following compatibility table specifies the versions of Ruby driver for
MongoDB
(the mongo gem) supported by the most recent patch releases of the
specified Mongoid versions.
Note
Older versions of Mongoid within the same minor release may support older
driver versions. For example, Mongoid 7.0.5 supports driver versions 2.5 and
newer, whereas Mongoid 7.0.6 requires driver version 2.7 or newer.
| Mongoid |
Driver 2.17-2.10 |
Driver 2.9-2.7 |
| 7.5 |
✓ |
|
| 7.4 |
✓ |
|
| 7.3 |
✓ |
|
| 7.2 |
✓ |
|
| 7.1 |
✓ |
✓ |
| 7.0 |
✓ |
✓ |
| 6.4 |
✓ |
✓ |
Ruby Compatibility
The following compatibility table specifies the versions of Ruby interpreters
supported by Mongoid. “D” in a column means support for that Ruby version
is deprecated.
| Mongoid |
Ruby 3.1 |
Ruby 3.0 |
Ruby 2.7 |
Ruby 2.6 |
Ruby 2.5 |
Ruby 2.4 |
Ruby 2.3 |
Ruby 2.2 |
JRuby 9.2 |
JRuby 9.3 |
| 7.5 |
✓ |
✓ |
✓ |
✓ |
D |
|
|
|
D |
✓ |
| 7.4 |
✓ |
✓ |
✓ |
✓ |
✓ |
|
|
|
✓ |
|
| 7.3 |
✓ |
✓ |
✓ |
✓ |
✓ |
D |
D |
|
✓ |
|
| 7.2 |
✓ |
✓ |
✓ |
✓ |
✓ |
D |
D |
|
✓ |
|
| 7.1 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
|
✓ |
|
| 7.0 |
|
|
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
|
| 6.4 |
|
|
|
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
|
MongoDB Server Compatibility
The following compatibility table specifies the recommended
version(s) of Mongoid for use with a specific version of MongoDB server.
Note that in order to use features of a particular MongoDB server version,
both the driver and Mongoid must support that server version.
Please refer to the driver compatibility page
for driver compatibility matrices.
“D” in a column means support for that MongoDB server version is deprecated
and will be removed in a next version.
| Mongoid |
MongoDB 6.0 |
MongoDB 5.0 |
MongoDB 4.4 |
MongoDB 4.2 |
MongoDB 4.0 |
MongoDB 3.6 |
MongoDB 3.4 |
MongoDB 3.2 |
MongoDB 3.0 |
MongoDB 2.6 |
| 7.5 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
D |
D |
D |
D |
| 7.4 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
D |
D |
D |
D |
| 7.3 |
|
✓ |
✓ |
✓ |
✓ |
✓ |
D |
D |
D |
D |
| 7.2 |
|
✓ |
✓ |
✓ |
✓ |
✓ |
D |
D |
D |
D |
| 7.1 |
|
✓ |
✓ |
✓ |
✓ |
✓ |
D |
D |
D |
D |
| 7.0 |
|
✓ |
✓ |
✓ |
✓ |
✓ |
D |
D |
D |
D |
| 6.4 |
|
✓ |
✓ |
✓ |
✓ |
✓ |
D |
D |
D |
D |
Rails Compatibility
The following compatibility table specifies which versions of Ruby on Rails
are supported by Mongoid.
| Mongoid |
Rails 7.0 |
Rails 6.1 |
Rails 6.0 |
Rails 5.2 |
Rails 5.1 |
Rails 5.0 |
Rails 4.2 |
| 7.5 |
✓ |
✓ |
✓ |
✓ |
D |
|
|
| 7.4 |
✓ |
✓ |
✓ |
✓ |
✓ |
|
|
| 7.3 |
✓ |
✓ |
✓ |
✓ |
✓ |
|
|
| 7.2 |
|
✓ |
✓ |
✓ |
✓ |
|
|
| 7.1 |
|
✓ |
✓ |
✓ |
✓ |
|
|
| 7.0 |
|
✓ |
✓ |
✓ |
✓ |
|
|
| 6.4 |
|
|
|
✓ |
✓ |
|
|
| 6.3 |
|
|
|
✓ |
✓ |
|
|
| 6.2 |
|
|
|
✓ |
✓ |
|
|
| 6.1 |
|
|
|
|
|
✓ |
|
| 6.0 |
|
|
|
|
|
✓ |
|
| 5.4 |
|
|
|
|
|
|
✓ |
| 5.2 |
|
|
|
|
|
|
✓ |