diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2014-09-03 02:51:27 +0900 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2014-09-03 04:43:53 +0900 |
commit | 252165ea46932f8a7304ce40ba6e30dc1b490586 (patch) | |
tree | 9c3db39472ca0b6ae51cf01865ad9fb6e3348920 /activerecord/test/cases/schema_dumper_test.rb | |
parent | a2f8377d1dd66c200a9a8d31db14f2b0a4bec744 (diff) | |
download | rails-252165ea46932f8a7304ce40ba6e30dc1b490586.tar.gz rails-252165ea46932f8a7304ce40ba6e30dc1b490586.tar.bz2 rails-252165ea46932f8a7304ce40ba6e30dc1b490586.zip |
Remove 'if exists' from drop table statement then use `table_exists?`
Since 'drop table if exists' statement does not always work with
some databases such as Oracle.
Diffstat (limited to 'activerecord/test/cases/schema_dumper_test.rb')
-rw-r--r-- | activerecord/test/cases/schema_dumper_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/schema_dumper_test.rb b/activerecord/test/cases/schema_dumper_test.rb index 066e6b6468..ff47a7a355 100644 --- a/activerecord/test/cases/schema_dumper_test.rb +++ b/activerecord/test/cases/schema_dumper_test.rb @@ -441,7 +441,7 @@ class SchemaDumperDefaultsTest < ActiveRecord::TestCase teardown do return unless @connection - @connection.execute 'DROP TABLE IF EXISTS defaults' + @connection.execute 'DROP TABLE defaults' if @connection.table_exists? 'defaults' end def test_schema_dump_defaults_with_universally_supported_types |