Replaces 'commitchange' prefix with 'houdini' from databases

This commit is contained in:
Clarissa Borges 2021-05-04 12:20:04 -03:00 committed by Eric Schultz
parent f9cab598c1
commit 7e8cd4e827
4 changed files with 7 additions and 7 deletions

View file

@ -16,7 +16,7 @@
development:
adapter: postgresql
encoding: unicode
database: commitchange_development
database: houdini_development
pool: 20
username: houdini_user
password: password
@ -33,7 +33,7 @@ test:
ci:
adapter: postgresql
encoding: unicode
database: commitchange_ci
database: houdini_ci
pool: 5
username: houdini_user
password: password
@ -62,7 +62,7 @@ ci:
production:
adapter: postgresql
encoding: unicode
database: commitchange_production
database: houdini_production
pool: 5
username: admin
password: password
@ -70,7 +70,7 @@ production:
staging:
adapter: postgresql
encoding: unicode
database: commitchange_staging
database: houdini_staging
pool: 5
username: admin
password: password

View file

@ -1,2 +1,2 @@
#!/bin/bash
( RAILS_ENV=${RAILS_ENV:-production} DATABASE_URL=${BUILD_DATABASE_URL:-postgres://admin:password@db/commitchange_development} bundle exec rake assets:precompile )
( RAILS_ENV=${RAILS_ENV:-production} DATABASE_URL=${BUILD_DATABASE_URL:-postgres://admin:password@db/houdini_development} bundle exec rake assets:precompile )

View file

@ -1,4 +1,4 @@
#!/bin/bash
dropdb commitchange_development ; dropdb commitchange_test ; rake db:drop ; rake db:setup ; rake db:migrate ; script/pg_restore_local_from_production.sh
dropdb houdini_development ; dropdb houdini_test ; rake db:drop ; rake db:setup ; rake db:migrate ; script/pg_restore_local_from_production.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
set -e
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U houdini_user -d commitchange_development latest.dump
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U houdini_user -d houdini_development latest.dump