Sha256: 1e0ee963800b96b54b6c1687c20341ec9d4e4ee1279cfb8c64cfe00956049eca

Contents?: true

Size: 751 Bytes

Versions: 1

Compression:

Stored size: 751 Bytes

Contents

require "active_support"
require "active_record"

require "active_record/connection_adapters/cipherstash_pg/database_extensions"
require "active_record/connection_adapters/cipherstash_pg/database_tasks"

module ActiveRecord
  module ConnectionAdapters
    module CipherStashPG
      class Railtie < ::Rails::Railtie
        rake_tasks do
          load "active_record/connection_adapters/cipherstash_pg/cipherstash_tasks.rake"
        end
      end

      # Method to install CipherStash custom ORE types
      def self.install
        CipherStashPG::DatabaseExtensions.install
      end

      # Method to uninstall CipherStash custom ORE types
      def self.uninstall
        CipherStashPG::DatabaseExtensions.uninstall
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-cipherstash-pg-adapter-0.2.0 lib/activerecord-cipherstash-pg-adapter.rb