Skip to content

Commit

Permalink
Be sure to reset PK name renamed in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Aug 14, 2014
1 parent fdd4b73 commit cf38bda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions activerecord/test/cases/migration/columns_test.rb
Expand Up @@ -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

Expand Down

0 comments on commit cf38bda

Please sign in to comment.