Created
November 13, 2012 17:01
-
-
Save rewinfrey/4066999 to your computer and use it in GitHub Desktop.
Creating New Rails App With PostGres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$> 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