mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
FIX: Don't trigger PG failover when running db:migrate
.
This commit is contained in:
@ -138,6 +138,7 @@ end
|
||||
module ActiveRecord
|
||||
module ConnectionHandling
|
||||
def postgresql_fallback_connection(config)
|
||||
return postgresql_connection(config) if ARGV.include?("db:migrate")
|
||||
fallback_handler = ::PostgreSQLFallbackHandler.instance
|
||||
config = config.symbolize_keys
|
||||
|
||||
|
Reference in New Issue
Block a user