Skip to content

Commit

Permalink
Fix database name method
Browse files Browse the repository at this point in the history
  • Loading branch information
npezza93 committed Oct 16, 2024
1 parent cd8e0c9 commit 0d2b112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/dummy/config/database.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0d2b112

Please sign in to comment.