Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Be sure to reset PK name renamed in the test

  • Loading branch information...
commit cf38bda8e2a16ce205ec88207687b8091ee67617 1 parent fdd4b73
@amatsuda amatsuda authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  activerecord/test/cases/migration/columns_test.rb
View
3  activerecord/test/cases/migration/columns_test.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.