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/schema/postgresql_specific_schema.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test/schema/postgresql_specific_schema.rb') diff --git a/activerecord/test/schema/postgresql_specific_schema.rb b/activerecord/test/schema/postgresql_specific_schema.rb index 55360b9aa2..77d2f7fda2 100644 --- a/activerecord/test/schema/postgresql_specific_schema.rb +++ b/activerecord/test/schema/postgresql_specific_schema.rb @@ -2,7 +2,7 @@ ActiveRecord::Schema.define do %w(postgresql_times postgresql_oids defaults postgresql_timestamp_with_zones postgresql_partitioned_table postgresql_partitioned_table_parent).each do |table_name| - execute "DROP TABLE IF EXISTS #{quote_table_name table_name}" + drop_table table_name, if_exists: true end execute 'DROP SEQUENCE IF EXISTS companies_nonstd_seq CASCADE' -- cgit v1.2.3