PostgreSQL
 sql >> Base de données >  >> RDS >> PostgreSQL

râteau avorté ! Gem ::LoadError :'postgresql' spécifié pour l'adaptateur de base de données

Veuillez remplacer ce qui suit

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug'
  gem 'sqlite3'
  # Access an IRB console on exception pages or by using <%= console %> in views
  gem 'web-console', '~> 2.0'

  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
end

par ceci

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug'
  gem 'pg'
  # Access an IRB console on exception pages or by using <%= console %> in views
  gem 'web-console', '~> 2.0'

  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
end

Pour le développement et les tests, vous avez besoin de gem pg pour l'adaptateur postgresql au lieu de gem sqlit3