From f08d440ea0c375e506d4db69d4f8b4db78ade910 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 25 Aug 2020 14:20:58 +0800 Subject: [PATCH] DEV: Disable migration advisory locks in dev and test environment. There is a bug in Rails that leaks an idle PG session which will prevent the dropping of the database. --- config/database.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/database.yml b/config/database.yml index c8f44946d92..32be4265b88 100644 --- a/config/database.yml +++ b/config/database.yml @@ -6,6 +6,7 @@ development: pool: 5 timeout: 5000 checkout_timeout: <%= ENV['CHECKOUT_TIMEOUT'] || 5 %> + advisory_locks: false # Disable until https://github.com/rails/rails/issues/40029 has beeen resolved. host_names: ### Don't include the port number here. Change the "port" site setting instead, at /admin/site_settings. ### If you change this setting you will need to @@ -36,6 +37,7 @@ test: min_messages: warning pool: 5 timeout: 5000 + advisory_locks: false # Disable until https://github.com/rails/rails/issues/40029 has beeen resolved. host_names: - test.localhost