instance method
extension_enabled?
Ruby on Rails 5.2.8.1
Since v4.0.13Signature
extension_enabled?(name)
No documentation comment.
Parameters
-
namereq
Source
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 363
def extension_enabled?(name)
res = exec_query("SELECT EXISTS(SELECT * FROM pg_available_extensions WHERE name = '#{name}' AND installed_version IS NOT NULL) as enabled", "SCHEMA")
res.cast_values.first
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb line 363
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter