]> gitweb.mndrdr.org Git - arelpe.git/commitdiff
Update database settings for test suite
authorAidan Cornelius-Bell <[email protected]>
Sat, 11 Jan 2025 08:14:54 +0000 (18:44 +1030)
committerAidan Cornelius-Bell <[email protected]>
Sat, 11 Jan 2025 08:14:54 +0000 (18:44 +1030)
config/database.yml

index 08dbdd481a54375eb6195f62226633d82c69c22f..0399a33e45007057f74e6a0b4f9c28edae339372 100644 (file)
@@ -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