diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-03-15 11:59:25 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-03-15 11:59:25 +0100 |
commit | 6869884b4606b362d995173fcdac68201bc5601c (patch) | |
tree | b5d7248398109721a1b788e2f5a8bff1a036f8af /activerecord/test/cases/migration/index_test.rb | |
parent | bae7f1dae90c37b0e02482a1d99f4aeec5d49e24 (diff) | |
parent | 3baace687cfbf4c98367fda31e0a4b0f85ce813f (diff) | |
download | rails-6869884b4606b362d995173fcdac68201bc5601c.tar.gz rails-6869884b4606b362d995173fcdac68201bc5601c.tar.bz2 rails-6869884b4606b362d995173fcdac68201bc5601c.zip |
Merge pull request #14380 from tgxworld/use_teardown_helper_method_in_activerecord
Use teardown helper method.
Diffstat (limited to 'activerecord/test/cases/migration/index_test.rb')
-rw-r--r-- | activerecord/test/cases/migration/index_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/migration/index_test.rb b/activerecord/test/cases/migration/index_test.rb index 8d1daa0a04..35af11f672 100644 --- a/activerecord/test/cases/migration/index_test.rb +++ b/activerecord/test/cases/migration/index_test.rb @@ -21,8 +21,7 @@ module ActiveRecord end end - def teardown - super + teardown do connection.drop_table :testings rescue nil ActiveRecord::Base.primary_key_prefix_type = nil end |