From 9e25d2b4c685dcc6f7d6c7969ad48cfc6ba06601 Mon Sep 17 00:00:00 2001 From: Jeremy Green Date: Mon, 1 Jul 2024 11:52:08 -0500 Subject: [PATCH] Fix for crashes on MacOS related to ruby-pg (#1573) Some users are reporting crashes on MacOS when first trying to access the database. There's an issue open on `ruby-pg` that describes this temporary workaround. https://github.com/ged/ruby-pg/issues/538 Hopefully fixes: https://github.com/bullet-train-co/bullet_train/issues/1379 --- config/database.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/database.yml b/config/database.yml index 3d9650661..92b197d1a 100644 --- a/config/database.yml +++ b/config/database.yml @@ -24,6 +24,10 @@ default: &default development: <<: *default database: untitled_application_development + # On MacOS some users are reporting crashes when first trying to access + # the database. This workaround was suggested in this issue on `ruby-pg`: + # https://github.com/ged/ruby-pg/issues/538 + <% if RUBY_PLATFORM =~ /darwin/ %>gssencmode: disable<% end %> # The specified database role being used to connect to postgres. # To create additional roles in postgres see `$ createuser --help`.