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/attribute_decorators_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/attribute_decorators_test.rb')
-rw-r--r-- | activerecord/test/cases/attribute_decorators_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/attribute_decorators_test.rb b/activerecord/test/cases/attribute_decorators_test.rb index 32977b805f..644876752e 100644 --- a/activerecord/test/cases/attribute_decorators_test.rb +++ b/activerecord/test/cases/attribute_decorators_test.rb @@ -28,7 +28,7 @@ module ActiveRecord teardown do return unless @connection - @connection.execute 'DROP TABLE IF EXISTS attribute_decorators_model' + @connection.execute 'DROP TABLE attribute_decorators_model' if @connection.table_exists? 'attribute_decorators_model' Model.attribute_type_decorations.clear Model.reset_column_information end |