diff options
author | Stephen Touset <stephen@touset.org> | 2013-03-12 09:29:06 -0700 |
---|---|---|
committer | Stephen Touset <stephen@touset.org> | 2013-03-12 09:29:06 -0700 |
commit | 2076a9397911cb49442f5e3b36ae0b57df52d019 (patch) | |
tree | 436d1653fe4aebdb569efd554f25dd7938171ef4 /activerecord/lib | |
parent | d25a82280f977664e3b3d49c13bb68502718f6e2 (diff) | |
download | rails-2076a9397911cb49442f5e3b36ae0b57df52d019.tar.gz rails-2076a9397911cb49442f5e3b36ae0b57df52d019.tar.bz2 rails-2076a9397911cb49442f5e3b36ae0b57df52d019.zip |
Also quote extension name in disable_extension
A patch was committed recently which quoted the extension name in the SQL for `enable_extension`. But the same wasn't done for `disable_extension`.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index cfcc783904..a2109444b7 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -600,7 +600,7 @@ module ActiveRecord 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 |