instance method
extension_enabled?
Ruby on Rails 8.1.2
Since v4.0.13Signature
extension_enabled?(name)
No documentation comment.
Parameters
-
namereq
Source
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 512
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 512
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter