diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-12-22 14:15:56 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-12-22 14:15:56 -0700 |
commit | 849274316dc136135c50895e898e294904fec7a2 (patch) | |
tree | b359719a1e635b2de0163879a94837c464f54090 /activerecord/test | |
parent | b7d7e0b15e4c6aaad9fbb408d7596fffa796e843 (diff) | |
download | rails-849274316dc136135c50895e898e294904fec7a2.tar.gz rails-849274316dc136135c50895e898e294904fec7a2.tar.bz2 rails-849274316dc136135c50895e898e294904fec7a2.zip |
Don't wrap `create_table` in a transaction for tests which run on MySQL
PG will warn without it, but mysql2 errors out.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration/references_foreign_key_test.rb | 4 |
1 files changed, 1 insertions, 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 |