1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Don't wrap create_table in a transaction for tests which run on MySQL

PG will warn without it, but mysql2 errors out.
This commit is contained in:
Sean Griffin 2014-12-22 14:15:56 -07:00
parent b7d7e0b15e
commit 849274316d

View file

@ -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