Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

FIX: Support Rails 6.1 #3

Merged
merged 1 commit into from Apr 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/discourse_dev.rb
Expand Up @@ -48,7 +48,10 @@ def self.root
private
def each_current_configuration(environment, name = nil)
rails_each_current_configuration(environment, name) { |db_config|
next if environment == "development" && ENV["SKIP_TEST_DATABASE"] == "1" && db_config["database"] != "discourse_development"
next if environment == "development" &&
ENV["SKIP_TEST_DATABASE"] == "1" &&
db_config.configuration_hash[:database] != "discourse_development"

yield db_config
}
end
Expand Down