Skip to content

Commit

Permalink
move switch to PG up higher in the script
Browse files Browse the repository at this point in the history
  • Loading branch information
dpickett committed Dec 20, 2013
1 parent 7b0e017 commit d8ef9c6
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions template.rb
Expand Up @@ -120,6 +120,33 @@ def from_repo(github_user, project_name, from, to = from.split("/").last)

::FileUtils.rm_rf("test")

file 'config/database_pg.example.yml',
%Q{ # PostgreSQL. Versions 7.4 and 8.x are supported.
development:
adapter: postgresql
encoding: unicode
database: #{app_name}_development
pool: 5
username: app
password: qwerty
host: 127.0.0.1
test:
adapter: postgresql
encoding: unicode
database: #{app_name}_test
pool: 5
username: app
password: qwerty
host: 127.0.0.1
}

run 'cp config/database_pg.example.yml config/database.yml'
run 'rake db:create'

generate("rspec:install")
file '.rspec',
%q{
Expand Down Expand Up @@ -154,33 +181,6 @@ def from_repo(github_user, project_name, from, to = from.split("/").last)
# APP
#====================

file 'config/database_pg.example.yml',
%Q{ # PostgreSQL. Versions 7.4 and 8.x are supported.
development:
adapter: postgresql
encoding: unicode
database: #{app_name}_development
pool: 5
username: app
password: qwerty
host: 127.0.0.1
test:
adapter: postgresql
encoding: unicode
database: #{app_name}_test
pool: 5
username: app
password: qwerty
host: 127.0.0.1
}

run 'cp config/database_pg.example.yml config/database.yml'
run 'rake db:create'

file 'app/helpers/application_helper.rb',
%q{module ApplicationHelper
def body_class
Expand Down

0 comments on commit d8ef9c6

Please sign in to comment.