Skip to content

Commit 2641dc0

Browse files
committed
Fix flaky migration test
1 parent c6eaa01 commit 2641dc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/cases/migration_test_sqlserver.rb

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class MigrationTestSQLServer < ActiveRecord::TestCase
4141
lock_version_column = Person.columns_hash['lock_version']
4242
assert_equal :string, lock_version_column.type
4343
assert lock_version_column.default.nil?
44+
assert_nothing_raised { connection.change_column 'people', 'lock_version', :integer }
45+
Person.reset_column_information
4446
end
4547

4648
it 'not drop the default contraint if just renaming' do

0 commit comments

Comments
 (0)