I recently installed Ubuntu and PostgreSQL. I'm trying to pull up my PostgreSQL database. If I type rails db I get this error
psql: FATAL: database "homed_in_development" does not exist
So I then try running rake db:create or rake db:migrate but I get the error
PG::InsufficientPrivilege: ERROR: permission denied to create database
So I have tried CREATE ROLE myusername; after getting into PostgreSQL through the common psql postgres, which gives me the error ERROR: permission denied to create role. I tried to fix this issue using ALTER USER myusername WITH SUPERUSER, but I got the error message ERROR: must be superuser to alter superusers
I also got the error FATAL: role “myusername” does not exist on something else, and so I think my issues are that I haven't got roles or permissions set up properly.