instance method
extension_enabled?
Ruby on Rails 6.1.7.10
Since v4.0.13Signature
extension_enabled?(name)
No documentation comment.
Parameters
-
namereq
Source
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 401
def extension_enabled?(name)
query_value("SELECT installed_version IS NOT NULL FROM pg_available_extensions WHERE name = #{quote(name)}", "SCHEMA")
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb line 401
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter