提交 cf38bda8 编写于 作者: A Akira Matsuda

Be sure to reset PK name renamed in the test

上级 fdd4b73c
......@@ -66,6 +66,9 @@ def test_rename_column_preserves_default_value_not_null
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册