From 20770d467b2de0c7cae7039097b71d5871317a55 Mon Sep 17 00:00:00 2001 From: Aidan Cornelius-Bell Date: Sat, 11 Jan 2025 18:44:54 +1030 Subject: [PATCH] Update database settings for test suite --- config/database.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config/database.yml b/config/database.yml index 08dbdd4..0399a33 100644 --- a/config/database.yml +++ b/config/database.yml @@ -33,8 +33,14 @@ development: password: <%= ENV["MYSQL_PASSWORD"] %> test: - <<: *default - database: arelpe_test + adapter: mysql2 + encoding: utf8mb4 + database: <%= ENV['MYSQL_DATABASE'] %> + username: <%= ENV['MYSQL_USERNAME'] %> + password: <%= ENV['MYSQL_PASSWORD'] %> + host: <%= ENV['MYSQL_HOST'] %> + port: <%= ENV['MYSQL_PORT'] %> + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> production: <<: *default -- 2.39.5