diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-02-18 10:45:12 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-02-18 10:45:12 -0200 |
commit | b5ce18608edf0e55bc8a0d7d62ca703c75c7c4ef (patch) | |
tree | 088c2aa4fac0979343886ad08c9bee278a6933fd /activerecord/test/cases/adapters/postgresql/domain_test.rb | |
parent | 9814eb64275973abc66b1481b522c39b7083fff5 (diff) | |
parent | af64c82411067776d6e649462d9b74b14f1083f3 (diff) | |
download | rails-b5ce18608edf0e55bc8a0d7d62ca703c75c7c4ef.tar.gz rails-b5ce18608edf0e55bc8a0d7d62ca703c75c7c4ef.tar.bz2 rails-b5ce18608edf0e55bc8a0d7d62ca703c75c7c4ef.zip |
Merge pull request #18987 from kamipo/prefer_drop_table_if_exists_true_over_raw_sql
Prefer `drop_table if_exists: true` over raw SQL
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql/domain_test.rb')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/domain_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |