From 0d2b112cbff202abcef9c5966f5e8910c92e83a5 Mon Sep 17 00:00:00 2001 From: Nick Pezza Date: Wed, 16 Oct 2024 14:44:55 -0400 Subject: [PATCH] Fix database name method --- test/dummy/config/database.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/dummy/config/database.yml b/test/dummy/config/database.yml index b6afffc..813f377 100644 --- a/test/dummy/config/database.yml +++ b/test/dummy/config/database.yml @@ -1,4 +1,4 @@ -<% def database_name_from(name); ENV["TARGET_DB"]=="sqlite" ? "db/#{name}.sqlite3" : name; end %> +<% def database_name_from(name); ["mysql", "postgres"].exclude?(ENV["TARGET_DB"]) ? "db/#{name}.sqlite3" : name; end %> <% if ENV["TARGET_DB"] == "mysql" %> default: &default