File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
spec/migration_lock_timeout Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 55require 'strong_migrations' if Gem . loaded_specs . has_key? 'strong_migrations'
66require_relative '../../lib/migration-lock-timeout'
77
8- ACTIVE_RECORD_MIGRATION_CLASS = if ActiveRecord . gem_version < '5.0'
9- ActiveRecord ::Migration
10- else
11- ActiveRecord ::Migration [ ActiveRecord ::VERSION ::STRING . to_f ]
12- end
8+ ACTIVE_RECORD_MIGRATION_CLASS = ActiveRecord ::Migration [ ActiveRecord ::VERSION ::STRING . to_f ]
139
1410def expect_create_table
15- if ActiveRecord . gem_version < '6.0'
16- expect ( ActiveRecord ::Base . connection ) . to receive ( :execute ) .
17- with ( /CREATE TABLE/ ) .
18- and_call_original
19- elsif ActiveRecord . gem_version < '6.1.0'
20- expect ( ActiveRecord ::Base . connection ) . to receive ( :execute ) .
21- with ( /BEGIN/ ) .
22- and_call_original
11+ if ActiveRecord . gem_version >= '7.1'
2312 expect ( ActiveRecord ::Base . connection ) . to receive ( :execute ) .
2413 with ( /CREATE TABLE/ ) .
2514 and_call_original
You can’t perform that action at this time.
0 commit comments