Skip to content

Commit

Permalink
Add appropriate version constraint for mongoid.
Browse files Browse the repository at this point in the history
`mongoid` 7 is the last major version that's compatible with `mongo`
driver 2.15 (which is the last version that's compatible with MongoDB
2, which we're stuck with for at least a few more weeks).

https://www.mongodb.com/docs/mongoid/current/reference/compatibility/

Hoping this also fixes the unexpected Dependabot behaviour in #592 where
it tries to downgrade `mongoid` all the way to version 1.
  • Loading branch information
sengi committed Oct 17, 2023
1 parent 7b10cea commit 86b5815
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gem "gds-sso"
gem "govuk_app_config"

gem "mongo", "~> 2.15.1"
gem "mongoid"
gem "mongoid", "~> 7.5"

group :development, :test do
gem "brakeman"
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ DEPENDENCIES
gds-sso
govuk_app_config
mongo (~> 2.15.1)
mongoid
mongoid (~> 7.5)
rack-handlers
rails (= 7.0.8)
rspec-rails
Expand Down

0 comments on commit 86b5815

Please sign in to comment.