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