From af64c82411067776d6e649462d9b74b14f1083f3 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Wed, 18 Feb 2015 20:47:01 +0900 Subject: 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. --- activerecord/test/cases/adapters/postgresql/domain_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test/cases/adapters/postgresql/domain_test.rb') diff --git a/activerecord/test/cases/adapters/postgresql/domain_test.rb b/activerecord/test/cases/adapters/postgresql/domain_test.rb index b7d776b40c..26e064c937 100644 --- a/activerecord/test/cases/adapters/postgresql/domain_test.rb +++ b/activerecord/test/cases/adapters/postgresql/domain_test.rb @@ -19,7 +19,7 @@ class PostgresqlDomainTest < ActiveRecord::TestCase end teardown do - @connection.execute 'DROP TABLE IF EXISTS postgresql_domains' + @connection.drop_table 'postgresql_domains', if_exists: true @connection.execute 'DROP DOMAIN IF EXISTS custom_money' reset_connection end -- cgit v1.2.3