Skip to content

Commit 55a604a

Browse files
committed
Fix warning
DEPRECATION WARNING: Calling `ActiveRecord::Base.clear_all_connections! is deprecated. Please call the method directly on the connection handler; for example: `ActiveRecord::Base.connection_handler.clear_all_connections!`.
1 parent 3bf9b23 commit 55a604a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def teardown
5454
@connection.execute("SET statement_timeout TO '70s'")
5555
@connection.execute("SET lock_timeout TO '70s'")
5656
ActiveRecord::Migration.verbose = @verbose_was
57-
ActiveRecord::Base.clear_all_connections!
57+
ActiveRecord::Base.connection_handler.clear_all_connections!
5858
end
5959

6060
def run_migration(direction = :up)

0 commit comments

Comments
 (0)