1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Be sure to reset PK name renamed in the test

This commit is contained in:
Akira Matsuda 2014-08-15 01:27:50 +09:00
parent fdd4b73cb8
commit cf38bda8e2

View file

@ -66,6 +66,9 @@ module ActiveRecord
def test_mysql_rename_column_preserves_auto_increment
rename_column "test_models", "id", "id_test"
assert_equal "auto_increment", connection.columns("test_models").find { |c| c.name == "id_test" }.extra
TestModel.reset_column_information
ensure
rename_column "test_models", "id_test", "id"
end
end