sql >> Database teknologi >  >> RDS >> PostgreSQL

rake afbrudt! Gem::LoadError:Specificeret 'postgresql' for databaseadapter

Udskift venligst nedenstående

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

ved dette

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

Til udvikling og test skal du bruge gem pg til postgresql-adapter i stedet for gem sqlit3



  1. Generering af rækker baseret på kolonneværdi

  2. PostgreSQL-forespørgsel for at vise alle tabelnavne?

  3. virtualenv pip mysqldb mac os X python

  4. En situation, hvor ActiveRecord og SQL ikke returnerer de samme resultater på grund af, at ukendt OID behandles som streng