aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-12-22 14:15:56 -0700
committerSean Griffin <sean@thoughtbot.com>2014-12-22 14:15:56 -0700
commit849274316dc136135c50895e898e294904fec7a2 (patch)
treeb359719a1e635b2de0163879a94837c464f54090 /activerecord/test
parentb7d7e0b15e4c6aaad9fbb408d7596fffa796e843 (diff)
downloadrails-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.rb4
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