Sha256: 0869fa63c9825ac5152465f038187764f1eab365b5b0cd2f1b935a08fbf26669
Contents?: true
Size: 775 Bytes
Versions: 25
Compression:
Stored size: 775 Bytes
Contents
require 'logger' module ActiveRecord module ConnectionAdapters module CipherStashPG module DatabaseExtensions def self.install logger.info("Installing database extension.....") ActiveRecord::Base.connection.execute( ::CipherStashPG.install_script ) logger.info("Database extension installed.") end def self.uninstall logger.info("Uninstalling database extension.....") ActiveRecord::Base.connection.execute( ::CipherStashPG.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
25 entries across 25 versions & 1 rubygems