Sha256: d1e7e91993ead3efa446f4318469b4d2aef5fde3b66d89fa4f9253aff86adb08
Contents?: true
Size: 755 Bytes
Versions: 1
Compression:
Stored size: 755 Bytes
Contents
module ActiveRecord module ConnectionAdapters module CipherStashPG module DatabaseExtensions def self.install logger.info("Installing database extension.....") ActiveRecord::Base.connection.execute( ::CipherStash::PG.install_script ) logger.info("Database extension installed.") end def self.uninstall logger.info("Uninstalling database extension.....") ActiveRecord::Base.connection.execute( ::CipherStash::PG.uninstall_script ) logger.info("Database extension uninstalled.") end private_class_method def self.logger @logger ||= Rails.logger end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-cipherstash-pg-adapter-0.1.0 | lib/active_record/connection_adapters/cipherstash_pg/database_extensions.rb |