The problem is not what anyone wrote.
The problem is that the name of the postgresql database adapter is “postgresql”, not “postgres”, though the name of the GEM is “pg”.
The definition in the database.yml file should include
adapter: postgresql
More Related Contents:
- Store the day of the week and time?
- Mysql2::Error::ConnectionError: Access denied for user
- Rails ActiveRecord methods in different places [closed]
- bundle install fails with SSL certificate verification error
- Can’t find the PostgreSQL client library (libpq)
- ‘sudo gem install’ or ‘gem install’ and gem locations
- Rails: Installing PG gem on OS X – failure to build native extension
- PG::Error: SELECT DISTINCT, ORDER BY expressions must appear in select list
- How do I replace accented Latin characters in Ruby?
- Rails 5: ActiveRecord OR query
- LEFT OUTER joins in Rails 3
- Rails: ActiveRecord query based on association value
- How to test for (ActiveRecord) object equality
- How do I “activate” a different version of a particular gem?
- How to use ActiveRecord in a ruby script outside Rails?
- Regular expressions with validations in RoR 4
- What are the brackets [5.1] after ActiveRecord Migration and how does it work? [duplicate]
- Convert HTML to word file ?
- Rails 4 LIKE query – ActiveRecord adds quotes
- nokogiri gem installation error
- Ruby: problem installing EventMachine under Windows 7
- Rails Migrations: tried to change the type of column from string to integer
- String.force_encoding() in Ruby 1.8.7 (or Rails 2.x)
- Rails 3.1 limit user created objects
- unable to install pg gem
- Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432?
- How to fix “Your Ruby version is 2.3.0, but your Gemfile specified 2.2.5” while server starting
- Ruby 1.9.2 and Rails 3 cannot open rails console
- Ruby 1.9.2 how to install RMagick on Windows?
- Unable to install MySQL2 gem on Windows 7