mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +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 ActiveRecord
|
||||||
module ConnectionHandling
|
module ConnectionHandling
|
||||||
def postgresql_fallback_connection(config)
|
def postgresql_fallback_connection(config)
|
||||||
|
return postgresql_connection(config) if ARGV.include?("db:migrate")
|
||||||
fallback_handler = ::PostgreSQLFallbackHandler.instance
|
fallback_handler = ::PostgreSQLFallbackHandler.instance
|
||||||
config = config.symbolize_keys
|
config = config.symbolize_keys
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user