# Railsを7から8にアップグレードする

## コマンドメモ

```sh:Terminal
bundle update
```

```sh:Terminal
bundle clean --force
```

## メモ

- annotate が Rails 8 で未対応になったので `annotaterb` に置き換える
- Active Recordの暗号化問題（下記）
- `gem "debug", platforms: %i[ mri windows ] #, require: "debug/prelude"` の `require` について

## ブックマーク

::link-card[https://zenn.dev/wed_engineering/articles/4a0194badf6ee8]

::link-card[https://github.com/drwl/annotaterb]

---

::link-card[https://tech.studyplus.co.jp/entry/2024/03/04/100000]

```ruby
config.active_record.encryption.support_sha1_for_non_deterministic_encryption = true
```

> このオプションを有効化すると暗号化でSHA256を使用しつつ復号化はSHA256とSHA1で暗号化された属性の両方を複合化できる状態となります。
