Skip to content

Instantly share code, notes, and snippets.

@sionc
Last active December 17, 2015 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sionc/5597622 to your computer and use it in GitHub Desktop.
Save sionc/5597622 to your computer and use it in GitHub Desktop.
Basic postgresql commands
Creating an rails app with Postgres
$ rails new app --database=postgresql
Creating a user
$ createuser rails_dev
Creating a database
$ createdb -Orails_dev -Eunicode sager_app_development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment