Skip to content

Commit

Permalink
Fix monospace formatting [ci-skip]
Browse files Browse the repository at this point in the history
(cherry picked from commit d7aee01)
  • Loading branch information
jonathanhefner committed Oct 12, 2023
1 parent ca7b7d5 commit cdf8ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/source/upgrading_ruby_on_rails.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,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
Expand Down

0 comments on commit cdf8ce4

Please sign in to comment.