Skip to content

Commit f89a893

Browse files
authored
Merge pull request #761 from aidanharan/fix-migration-context-initialisation
Rails 6: Fixed migration test
2 parents 579730f + ca78a17 commit f89a893

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cases/migration_test_sqlserver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class MigrationTestSQLServer < ActiveRecord::TestCase
2020
it 'not create a tables if error in migrations' do
2121
begin
2222
migrations_dir = File.join ARTest::SQLServer.migrations_root, 'transaction_table'
23-
quietly { ActiveRecord::MigrationContext.new(migrations_dir).up }
23+
quietly { ActiveRecord::MigrationContext.new(migrations_dir, ActiveRecord::SchemaMigration).up }
2424
rescue Exception => e
2525
assert_match %r|this and all later migrations canceled|, e.message
2626
end

0 commit comments

Comments
 (0)