module ActiveRecord::Encryption::Contexts

def without_encryption(&block)

* Writing encrypted content will write its clear text.
* Reading encrypted content will return its ciphertexts.

Runs the provided block in an encryption context where encryption is disabled:
def without_encryption(&block)
  with_encryption_context encryptor: ActiveRecord::Encryption::NullEncryptor.new, &block
end