Skip to content

Commit 0cf52b9

Browse files
committed
fixed tests
1 parent dbc28e4 commit 0cf52b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/active_record/connection_adapters/sqlserver/schema_creation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module ActiveRecord
44
module ConnectionAdapters
55
module SQLServer
6-
BASE_SCHEMA_CREATION_CLASS = Rails::VERSION::MAJOR >= 6 && Rails::VERSION::MINOR >= 1 ?
6+
BASE_SCHEMA_CREATION_CLASS = ((ActiveRecord.version <=> Gem::Version.new("6.1")) != -1) ?
77
SchemaCreation :
88
AbstractAdapter::SchemaCreation
99

lib/active_record/connection_adapters/sqlserver/transaction.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def current_isolation_level
3131
module SQLServerRealTransaction
3232
attr_reader :starting_isolation_level
3333

34-
if Rails::VERSION::MAJOR >= 6 && Rails::VERSION::MINOR >= 1
34+
if (ActiveRecord.version <=> Gem::Version.new("6.1")) != -1
3535
def initialize(connection, **args)
3636
@connection = connection
3737
@starting_isolation_level = current_isolation_level if args[:isolation]

0 commit comments

Comments
 (0)