Skip to content

Commit

Permalink
Fix monospace formatting [ci-skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanhefner committed Oct 12, 2023
1 parent 5021b46 commit d7aee01
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 @@ -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
Expand Down

0 comments on commit d7aee01

Please sign in to comment.