aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/postgresql/bit_string_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2015-02-18 20:47:01 +0900
committerRyuta Kamizono <kamipo@gmail.com>2015-02-18 20:58:45 +0900
commitaf64c82411067776d6e649462d9b74b14f1083f3 (patch)
tree088c2aa4fac0979343886ad08c9bee278a6933fd /activerecord/test/cases/adapters/postgresql/bit_string_test.rb
parent9814eb64275973abc66b1481b522c39b7083fff5 (diff)
downloadrails-af64c82411067776d6e649462d9b74b14f1083f3.tar.gz
rails-af64c82411067776d6e649462d9b74b14f1083f3.tar.bz2
rails-af64c82411067776d6e649462d9b74b14f1083f3.zip
Prefer `drop_table if_exists: true` over raw SQL
Lowercase raw SQL has been replaced by 07b659c already. This commit replaces everything else of raw SQL.
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql/bit_string_test.rb')
-rw-r--r--activerecord/test/cases/adapters/postgresql/bit_string_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/bit_string_test.rb b/activerecord/test/cases/adapters/postgresql/bit_string_test.rb
index 6c6b4dc22a..1a5ff4316c 100644
--- a/activerecord/test/cases/adapters/postgresql/bit_string_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/bit_string_test.rb
@@ -20,7 +20,7 @@ class PostgresqlBitStringTest < ActiveRecord::TestCase
def teardown
return unless @connection
- @connection.execute 'DROP TABLE IF EXISTS postgresql_bit_strings'
+ @connection.drop_table 'postgresql_bit_strings', if_exists: true
end
def test_bit_string_column