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