Skip to content

Commit 3972fda

Browse files
committed
Call verified! if connection active
1 parent 1b90779 commit 3972fda

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,10 @@ def disable_referential_integrity
280280
# === Abstract Adapter (Connection Management) ================== #
281281

282282
def active?
283-
@raw_connection&.active?
283+
if @raw_connection&.active?
284+
verified!
285+
true
286+
end
284287
rescue *connection_errors
285288
false
286289
end

0 commit comments

Comments
 (0)