From d7aee014cb2689195bc593ca43fc1916b823c443 Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Wed, 11 Oct 2023 23:51:34 -0500 Subject: [PATCH] Fix monospace formatting [ci-skip] --- guides/source/upgrading_ruby_on_rails.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index b989b46c7b45b..05788d7d8310b 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -321,14 +321,14 @@ puts Rails.logger.broadcasts #=> [MyLogger] Active Record Encryption now uses SHA-256 as its hash digest algorithm. If you have data encrypted with previous Rails versions, there are two scenarios to consider: -1. If you have +config.active_support.key_generator_hash_digest_class+ configured as SHA1 (the default +1. If you have `config.active_support.key_generator_hash_digest_class` configured as SHA-1 (the default before Rails 7.0), you need to configure SHA-1 for Active Record Encryption too: ```ruby config.active_record.encryption.hash_digest_class = OpenSSL::Digest::SHA1 ``` -1. If you have +config.active_support.key_generator_hash_digest_class+ configured as SHA256 (the new default +1. If you have `config.active_support.key_generator_hash_digest_class` configured as SHA-256 (the new default in 7.0), then you need to configure SHA-256 for Active Record Encryption: ```ruby