Skip to content

Commit 876576f

Browse files
committed
Use new migration context to run migration
1 parent 98d6c4e commit 876576f

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::Migrator.up(migrations_dir) }
23+
quietly { ActiveRecord::MigrationContext.new(migrations_dir).up }
2424
rescue Exception => e
2525
assert_match %r|this and all later migrations canceled|, e.message
2626
end

0 commit comments

Comments
 (0)