Skip to content
  • eileencodes's avatar
    7315c91d
    Deprecate `#remove_connection` in favor of `#remove_connection_pool` · 7315c91d
    eileencodes authored
    
    
    Calling `#remove_connection` on the handler is deprecated in favor of
    `#remove_connection_pool`. This change was made to support changing the
    return value from a hash to a `DatabaseConfig` object.
    `#remove_connection` will be removed in 6.2.
    
    NOTE: `#remove_connection` on `ActiveRecord::Base` will also now return
    a `DatabaseConfig` object. We didn't use a deprecation here since
    it's not documented that this method used to return a `Hash`.
    
    Co-authored-by: default avatarJohn Crepezzi <john.crepezzi@gmail.com>
    7315c91d
    Deprecate `#remove_connection` in favor of `#remove_connection_pool`
    eileencodes authored
    
    
    Calling `#remove_connection` on the handler is deprecated in favor of
    `#remove_connection_pool`. This change was made to support changing the
    return value from a hash to a `DatabaseConfig` object.
    `#remove_connection` will be removed in 6.2.
    
    NOTE: `#remove_connection` on `ActiveRecord::Base` will also now return
    a `DatabaseConfig` object. We didn't use a deprecation here since
    it's not documented that this method used to return a `Hash`.
    
    Co-authored-by: default avatarJohn Crepezzi <john.crepezzi@gmail.com>
Loading