I am trying to create a database in Rails. In postgres, I see a development and testing database, however I get a permission error. I tried to follow this link, did not work for me.
Error: PG::InsufficientPrivilege: ERROR: permission denied for relation schema_migrations : SELECT "schema_migrations".* FROM "schema_migrations"
Rails: permission denied for schema_migrations relation
default: &default adapter: postgresql encoding: unicode pool: 5 host: localhost username: root password: development: <<: *default database: svp-chicago_development
I go into postgres and execute these commands.
psql postgres CREATE USER root CREATE DATABASE svp-chicago_development GRANT ALL PRIVILEGES ON DATABASE svp-chicago_development to root ALTER DATABASE svp-chicago_development OWNER TO root
When I do \list , I see the database.
source share