Skip to content

Instantly share code, notes, and snippets.

@rewinfrey
Created November 13, 2012 17:01
Show Gist options
  • Save rewinfrey/4066999 to your computer and use it in GitHub Desktop.
Save rewinfrey/4066999 to your computer and use it in GitHub Desktop.
Creating New Rails App With PostGres
$> rails new myapp --skip-test-unit --database=postgresql
$> rvm gemset create myapp
$> rvm gemset use myapp
$> include 'rspec-rails' in Gemfile
$> bundle install
$> rails generate rspec:install
$> psql -d postgres
$> create role myapp login createdb; # myapp should be the name listed as username in your rails app/config/database.yml file
$> \q
$> rake db:create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment