Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #13480 from kuldeepaggarwal/f-removed-depricated-c…

…onfig

using symbol instead of string in establish_connection
  • Loading branch information...
commit 84d47d073ed7e55a49c78c8cdda8209583e9a907 2 parents ccc1a7b + b9d79b1
@josevalim josevalim authored
View
2  activerecord/test/cases/adapter_test.rb
@@ -92,7 +92,7 @@ def test_not_specifying_database_name_for_cross_database_selects
)
end
ensure
- ActiveRecord::Base.establish_connection 'arunit'
+ ActiveRecord::Base.establish_connection :arunit
end
end
end
View
2  railties/test/application/rake/dbs_test.rb
@@ -153,7 +153,7 @@ def db_test_load_structure
`rails generate model book title:string;
bundle exec rake db:migrate db:structure:dump db:test:load_structure`
ActiveRecord::Base.configurations = Rails.application.config.database_configuration
- ActiveRecord::Base.establish_connection 'test'
+ ActiveRecord::Base.establish_connection :test
require "#{app_path}/app/models/book"
#if structure is not loaded correctly, exception would be raised
assert Book.count, 0
Please sign in to comment.
Something went wrong with that request. Please try again.