Skip to content

Instantly share code, notes, and snippets.

@Borgaard
Last active June 14, 2016 03:33
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 Borgaard/520a7e9cf8466aa71e8e40574fadc995 to your computer and use it in GitHub Desktop.
Save Borgaard/520a7e9cf8466aa71e8e40574fadc995 to your computer and use it in GitHub Desktop.

Installing PostgreSQL

Go to the postgres documentation:
http://postgresapp.com/documentation/cli-tools.html
cd ~
open .bash_profile (if you're using zshell, use open .zshrc instead.)

Add this to the last line of your .bash_profile or .zshrc file:
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin

rails new postgres_app --database=postgresql
rake db:create

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment