diff options
author | Antonio Santos <antonio@santosvelasco.com> | 2013-07-16 08:46:22 +0200 |
---|---|---|
committer | Antonio Santos <antonio@santosvelasco.com> | 2013-08-02 15:43:54 +0200 |
commit | fb9806e5d251efa48245a6e553004904d27f99b3 (patch) | |
tree | 8f80b093bd8f095bb559a2117ef968823bf27fc0 /activerecord/lib | |
parent | a929b4d4c59551189b8162f30b061c6ed5755bd5 (diff) | |
download | rails-fb9806e5d251efa48245a6e553004904d27f99b3.tar.gz rails-fb9806e5d251efa48245a6e553004904d27f99b3.tar.bz2 rails-fb9806e5d251efa48245a6e553004904d27f99b3.zip |
Define enable_extension method to prevent undefined method error
When mixing postgresql and another adapter like sqlite3 (for dev and test
respectively), the task `db:test:prepare` will fail due to the `enable_extension`
method not being defined in the abstract adapter. This patch simply adds an
empty definition to prevent it.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index 75333765aa..30932699d8 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -293,6 +293,14 @@ module ActiveRecord false end + # This is meant to be implemented by the adapters that support extensions + def disable_extension(name) + end + + # This is meant to be implemented by the adapters that support extensions + def enable_extension(name) + end + # A list of extensions, to be filled in by adapters that support them. At # the moment only postgresql does. def extensions |