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

Commit

Permalink
FIX: Support Rails 6.1 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
gschlager committed Apr 21, 2021
1 parent 31dc778 commit 2d5fd59
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 2d5fd59

Please sign in to comment.