require "active_record/connection_adapters/cipherstash_pg_adapter" module ActiveRecord module ConnectionHandling # This is the entrypoint that is called when Rails looks for the adapter, # when you have this in your database.yml config: # # adapter: postgres_cipherstash # # See: https://github.com/rails/rails/blob/d7d93faacfe0ca3297a47f676772828d7210b9bc/activerecord/lib/active_record/database_configurations/database_config.rb#L16-L18 alias_method :postgres_cipherstash_connection, :cipherstash_pg_connection end end