File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
activerecord/test/cases/adapters/postgresql Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -671,7 +671,8 @@ def test_date_decoding_disabled
671
671
672
672
def test_disable_extension_with_schema
673
673
@connection . execute ( "CREATE SCHEMA custom_schema" )
674
- @connection . execute ( "CREATE EXTENSION IF NOT EXISTS hstore SCHEMA custom_schema" )
674
+ @connection . execute ( "DROP EXTENSION IF EXISTS hstore" )
675
+ @connection . execute ( "CREATE EXTENSION hstore SCHEMA custom_schema" )
675
676
result = @connection . query ( "SELECT extname FROM pg_extension WHERE extnamespace = (SELECT oid FROM pg_namespace WHERE nspname = 'custom_schema')" )
676
677
assert_equal [ [ "hstore" ] ] , result . to_a
677
678
@@ -684,7 +685,8 @@ def test_disable_extension_with_schema
684
685
end
685
686
686
687
def test_disable_extension_without_schema
687
- @connection . execute ( "CREATE EXTENSION IF NOT EXISTS hstore" )
688
+ @connection . execute ( "DROP EXTENSION IF EXISTS hstore" )
689
+ @connection . execute ( "CREATE EXTENSION hstore" )
688
690
result = @connection . query ( "SELECT extname FROM pg_extension" )
689
691
assert_includes result . to_a , [ "hstore" ]
690
692
You can’t perform that action at this time.
0 commit comments