From 849274316dc136135c50895e898e294904fec7a2 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Mon, 22 Dec 2014 14:15:56 -0700 Subject: Don't wrap `create_table` in a transaction for tests which run on MySQL PG will warn without it, but mysql2 errors out. --- activerecord/test/cases/migration/references_foreign_key_test.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/activerecord/test/cases/migration/references_foreign_key_test.rb b/activerecord/test/cases/migration/references_foreign_key_test.rb index c6f0d50a8d..bba8897a0d 100644 --- a/activerecord/test/cases/migration/references_foreign_key_test.rb +++ b/activerecord/test/cases/migration/references_foreign_key_test.rb @@ -6,9 +6,7 @@ module ActiveRecord class ReferencesForeignKeyTest < ActiveRecord::TestCase setup do @connection = ActiveRecord::Base.connection - @connection.transaction do - @connection.create_table(:testing_parents, force: true) - end + @connection.create_table(:testing_parents, force: true) end teardown do -- cgit v1.2.3