diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-09 13:42:07 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-09 13:42:07 -0800 |
commit | ddd034f3a6570d3522471fbe173162a24879df4b (patch) | |
tree | 3953112a807a4bc1cb0b8048a4e0f32ab0a26f67 /activerecord/lib | |
parent | a6bd507eced6111de99ceced643da10e6b9489b0 (diff) | |
parent | 511c5ec8201e26fe1e69dca43b03a7b6990849b3 (diff) | |
download | rails-ddd034f3a6570d3522471fbe173162a24879df4b.tar.gz rails-ddd034f3a6570d3522471fbe173162a24879df4b.tar.bz2 rails-ddd034f3a6570d3522471fbe173162a24879df4b.zip |
Merge pull request #9618 from manvsmachine/fix-postgres-enable-extension-error
Bugfix for enable_extension in postgresql_adapter.
The use of quotations is required to install extensions with certain
characters in them (e.g. uuid-ossp).
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 691b2ab37f..cfcc783904 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -594,7 +594,7 @@ module ActiveRecord end def enable_extension(name) - exec_query("CREATE EXTENSION IF NOT EXISTS #{name}").tap { + exec_query("CREATE EXTENSION IF NOT EXISTS \"#{name}\"").tap { reload_type_map } end |