diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2015-02-18 20:47:01 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2015-02-18 20:58:45 +0900 |
commit | af64c82411067776d6e649462d9b74b14f1083f3 (patch) | |
tree | 088c2aa4fac0979343886ad08c9bee278a6933fd /activerecord/test/cases/adapters/postgresql/geometric_test.rb | |
parent | 9814eb64275973abc66b1481b522c39b7083fff5 (diff) | |
download | rails-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/geometric_test.rb')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/geometric_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/geometric_test.rb b/activerecord/test/cases/adapters/postgresql/geometric_test.rb index 4b25381a83..41e9572907 100644 --- a/activerecord/test/cases/adapters/postgresql/geometric_test.rb +++ b/activerecord/test/cases/adapters/postgresql/geometric_test.rb @@ -18,7 +18,7 @@ class PostgresqlPointTest < ActiveRecord::TestCase end teardown do - @connection.execute 'DROP TABLE IF EXISTS postgresql_points' + @connection.drop_table 'postgresql_points', if_exists: true end def test_column @@ -84,7 +84,7 @@ class PostgresqlGeometricTest < ActiveRecord::TestCase end teardown do - @connection.execute 'DROP TABLE IF EXISTS postgresql_geometrics' + @connection.drop_table 'postgresql_geometrics', if_exists: true end def test_geometric_types |