Skip to content
Browse files

Merge pull request #9687 from stouset/patch-1

Also quote extension name in disable_extension
  • Loading branch information...
2 parents d25a822 + 2076a93 commit 9ca55c2bb5f6902a05cd2cc292c893575ed6cc36 @rafaelfranca rafaelfranca committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
View
2 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -600,7 +600,7 @@ def enable_extension(name)
end
def disable_extension(name)
- exec_query("DROP EXTENSION IF EXISTS #{name} CASCADE").tap {
+ exec_query("DROP EXTENSION IF EXISTS \"#{name}\" CASCADE").tap {
reload_type_map
}
end

0 comments on commit 9ca55c2

Please sign in to comment.
Something went wrong with that request. Please try again.