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:
parent
b7d7e0b15e
commit
849274316d
1 changed files with 1 additions and 3 deletions
|
@ -6,10 +6,8 @@ module ActiveRecord
|
||||||
class ReferencesForeignKeyTest < ActiveRecord::TestCase
|
class ReferencesForeignKeyTest < ActiveRecord::TestCase
|
||||||
setup do
|
setup do
|
||||||
@connection = ActiveRecord::Base.connection
|
@connection = ActiveRecord::Base.connection
|
||||||
@connection.transaction do
|
|
||||||
@connection.create_table(:testing_parents, force: true)
|
@connection.create_table(:testing_parents, force: true)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
teardown do
|
teardown do
|
||||||
@connection.execute("drop table if exists testings")
|
@connection.execute("drop table if exists testings")
|
||||||
|
|
Loading…
Reference in a new issue