We've just updated ruby to 2.6 and bundler to 2. Now we're getting:
# bin/rails console
You must use Bundler 2 or greater with this lockfile.
This was previously happening with bundle exec:
# bundle exec rails console
You must use Bundler 2 or greater with this lockfile.
At that point we were still running 1.17.2 by default:
# gem list bundler
*** LOCAL GEMS ***
bundler (2.0.1, default: 1.17.2)
So we ran gem uninstall bundler --version 1.17.2 and then bundle exec started working.
But the bin stubs like bin/rails are still failing.
How can it be running 1.17.2 when that's been uninstalled?