Sha256: 38b505ea6f045ca2d15e222c8b6828bc59b6eb8e9048690449ffce08ffbfdd79
Contents?: true
Size: 779 Bytes
Versions: 6
Compression:
Stored size: 779 Bytes
Contents
require 'logger' 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 ||= Logger.new(STDOUT) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems