Skip to content

Commit

Permalink
Update database config
Browse files Browse the repository at this point in the history
  • Loading branch information
vczb committed May 30, 2021
1 parent 918ff9f commit 6a1fde6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_USER: gamification
POSTGRES_PASSWORD: gamification
POSTGRES_USER: gamou
POSTGRES_PASSWORD: gamou
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand All @@ -34,8 +34,8 @@ jobs:
- name: Build App
env:
PGHOST: localhost
PGUSER: gamification
PGPASSWORD: gamification
PGUSER: gamou
PGPASSWORD: gamou
RAILS_ENV: test
run: |
bin/rails db:setup
Expand All @@ -45,8 +45,8 @@ jobs:
- name: Run Tests
env:
PGHOST: localhost
PGUSER: gamification
PGPASSWORD: gamification
PGUSER: gamou
PGPASSWORD: gamou
RAILS_ENV: test
run: |
bundle exec rspec
Expand Down
14 changes: 7 additions & 7 deletions config/database.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
default: &default
adapter: postgresql
encoding: unicode
username: gamification
password: gamification
username: gamou
password: gamou
host: localhost
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>

development:
<<: *default
database: gamification_development
database: gamou_development

test:
<<: *default
database: gamification_test
database: gamou_test

production:
<<: *default
database: gamification_production
username: gamification
password: gamification
database: gamou_production
username: gamou
password: gamou

0 comments on commit 6a1fde6

Please sign in to comment.