diff options
Diffstat (limited to 'activerecord/test/cases/transactions_test.rb')
-rw-r--r-- | activerecord/test/cases/transactions_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/transactions_test.rb b/activerecord/test/cases/transactions_test.rb index 466ab45502..d1d8e71c34 100644 --- a/activerecord/test/cases/transactions_test.rb +++ b/activerecord/test/cases/transactions_test.rb @@ -655,7 +655,7 @@ class TransactionTest < ActiveRecord::TestCase connection.create_table(:transaction_without_primary_keys, force: true, id: false) do |t| t.integer :thing_id end - + klass = Class.new(ActiveRecord::Base) do self.table_name = 'transaction_without_primary_keys' after_commit { } # necessary to trigger the has_transactional_callbacks branch @@ -667,7 +667,6 @@ class TransactionTest < ActiveRecord::TestCase raise ActiveRecord::Rollback end end - ensure connection.execute("DROP TABLE IF EXISTS transaction_without_primary_keys") end |