From 75539632f33c1e97cdb7ca078b21bd0fc8ff8fd2 Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Fri, 9 May 2025 13:12:02 -0400 Subject: [PATCH] Add test wakatime db --- .github/workflows/ci.yml | 1 + config/database.yml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da86f6b..f815052 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,6 +105,7 @@ jobs: bin/rails db:create RAILS_ENV=test bin/rails db:migrate RAILS_ENV=test # Create additional test databases + psql -h localhost -U postgres -c "CREATE DATABASE test_wakatime;" psql -h localhost -U postgres -c "CREATE DATABASE test_sailors_log;" psql -h localhost -U postgres -c "CREATE DATABASE test_warehouse;" bin/rails test diff --git a/config/database.yml b/config/database.yml index 27b3f7e..41b28ce 100644 --- a/config/database.yml +++ b/config/database.yml @@ -54,7 +54,10 @@ test: password: postgres database_tasks: false wakatime: - url: <%= ENV['WAKATIME_DATABASE_URL'] %> + adapter: postgresql + database: test_wakatime + username: postgres + password: postgres replica: true sailors_log: adapter: postgresql