diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2014-09-11 01:43:41 +0900 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2014-09-11 03:47:44 +0900 |
commit | cb8b4167641484a9f7fe5757c872216e945bb1fb (patch) | |
tree | d45ed31f0e23d570137388c7ad0954d54041ba8f /activerecord/test/cases/attribute_decorators_test.rb | |
parent | a8eb6018318f65e34486da8d1860b3f0d774383d (diff) | |
download | rails-cb8b4167641484a9f7fe5757c872216e945bb1fb.tar.gz rails-cb8b4167641484a9f7fe5757c872216e945bb1fb.tar.bz2 rails-cb8b4167641484a9f7fe5757c872216e945bb1fb.zip |
Replace drop sql statement to drop_table method
to drop sequences at the same time each tables dropped for 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 644876752e..53bd58e22e 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 attribute_decorators_model' if @connection.table_exists? 'attribute_decorators_model' + @connection.drop_table 'attribute_decorators_model' if @connection.table_exists? 'attribute_decorators_model' Model.attribute_type_decorations.clear Model.reset_column_information end |