Permalink
Browse files

Be sure to reset PK name renamed in the test

  • Loading branch information...
1 parent fdd4b73 commit cf38bda8e2a16ce205ec88207687b8091ee67617 @amatsuda amatsuda committed Aug 14, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 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

0 comments on commit cf38bda

Please sign in to comment.