In a Rails application, with a bare pg
requirement in your Gemfile:
gem 'pg'
You'll get the following error:
Gem::LoadError can't activate pg (~> 0.18), already activated pg-1.0.0. Make sure all dependencies are added to Gemfile.
The pg
gem recently released version 1.0.0
which is not yet compatible with Rails.
If you're on Rails 5, change your Gemfile's pg
requirement to the following1:
gem 'pg', '~> 0.18'
or on Rails < 5, this:
gem 'pg', '~> 0.11'
And then run
bundle update pg
rails new
's Gemfile generator.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With