Skip to content

Commit

Permalink
FIX: Don't trigger PG failover when running db:migrate.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxworld committed May 6, 2019
1 parent 8217d5b commit c96b617
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -138,6 +138,7 @@ def synchronize
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

Expand Down

0 comments on commit c96b617

Please sign in to comment.