Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bumble-bee-chuna/14519cb8b4ec2ba86bb225d916207f71 to your computer and use it in GitHub Desktop.
Save bumble-bee-chuna/14519cb8b4ec2ba86bb225d916207f71 to your computer and use it in GitHub Desktop.
CREATE ROLE mystore LOGIN PASSWORD 'mystore' NOINHERIT CREATEDB;
Errors you will get in rails if you don't have the username available:
ActiveRecord::NoDatabaseError: FATAL: role does not exist rails
friggin start and stop the damn thing:
$ brew services list
$ brew services restart postgresql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment