diff options
author | Darren Woodley <darren.woodley@ticketalternative.com> | 2013-03-08 15:35:13 -0500 |
---|---|---|
committer | Darren Woodley <darren.woodley@ticketalternative.com> | 2013-03-08 22:41:22 -0500 |
commit | 511c5ec8201e26fe1e69dca43b03a7b6990849b3 (patch) | |
tree | 71c97afb70a77274a6a4d403ddc98ff06c4fdc1b /activerecord/lib | |
parent | e3c56ad9139ca98f2a538566b2810f278b32c375 (diff) | |
download | rails-511c5ec8201e26fe1e69dca43b03a7b6990849b3.tar.gz rails-511c5ec8201e26fe1e69dca43b03a7b6990849b3.tar.bz2 rails-511c5ec8201e26fe1e69dca43b03a7b6990849b3.zip |
fixes enable_extension bug in postgresql_adapter
The use of quotations is required to install extensions with certain
characters in them (e.g. uuid-ossp).
removes CHANGELOG entry
Deemed unnecessary.
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 |