How to handle Ruby on Rails error: “Please install the postgresql adapter: `gem install activerecord-postgresql-adapter'”

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

Leave a Comment