• J
    Pass env_name as a string in test databases · 1f938f52
    John Crepezzi 提交于
    In 154abcab we switched from using `Rails.env` to fetch the `env_name` to
    `ActiveRecord::ConnectionHandling::DEFAULT_ENV.call.to_sym` which
    changed the type from a `String` to a `Symbol`.
    
    This commit brings things back to the original state, so we can find the
    configurations correctly!
    
    It also modifies the configuration in the configurations array, so that
    future connections can find the database with the updated keyword value.
    1f938f52
test_databases.rb 1.3 KB