mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 20:18:54 +08:00
FIX: Don't trigger PG failover when running db:migrate
.
This commit is contained in:
parent
8217d5be78
commit
c96b617bf6
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user