Skip to content

Instantly share code, notes, and snippets.

@Kolenov
Last active December 13, 2017 22:20
Show Gist options
  • Save Kolenov/4498850e2a367326279270378d4eaa85 to your computer and use it in GitHub Desktop.
Save Kolenov/4498850e2a367326279270378d4eaa85 to your computer and use it in GitHub Desktop.
$ psql -d postgres
postgres=# create role "app_name" login createdb;
postgres=# \q
The first line is in your terminal, the next two are inside psql. Then do your rake db:create.

The User user is possibly a default but user is already taken for other purposes in PostgreSQL so 
you'd have to quote it to preserve the case if you wanted to use User as a username:

postgres=# create role "User" login createdb;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment