File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/active_record/connection_adapters/sqlserver Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 33module 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
Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments