require "active_record/base" require "active_record/tasks/postgresql_database_tasks" module ActiveRecord module ConnectionAdapters module CipherStashPG class DatabaseTasks < ActiveRecord::Tasks::PostgreSQLDatabaseTasks # nop; just here for the inheritance. end end end end ActiveRecord::Tasks::DatabaseTasks.register_task( /postgres_cipherstash/, ActiveRecord::ConnectionAdapters::CipherStashPG::DatabaseTasks )