コマンドメモ
Terminal
bundle updateTerminal
bundle clean --forceメモ
- annotate が Rails 8 で未対応になったので
annotaterbに置き換える - Active Recordの暗号化問題(下記)
gem "debug", platforms: %i[ mri windows ] #, require: "debug/prelude"のrequireについて
ブックマーク
Railsを8.0にアップグレードした際の手順や知見をまとめる
zenn.dev

GitHub - drwl/annotaterb: A Ruby Gem that adds annotations to your Rails models and route files.
A Ruby Gem that adds annotations to your Rails models and route files. - drwl/annotaterb
github.com
Rails7.1へのアップグレードで発生した暗号化のエラーとその対応 - Studyplus Engineering Blog
こんにちは。サーバーグループ エンジニアの山田です。 今回はRails7.0からRails7.1へのアップグレードを行なった際に、ActiveRecord Encryptionで発生したエラーとその対応について紹介します。 同様のエラーに遭遇した方の参考になれば幸いです。 ActiveRecord Encryptionによる属性の暗号化 決定論的暗号化と非決定論的暗号化 発生した事象 エラーの原因 SHA256に変わった経緯 対応方法 hash_digest_class support_sha1_for_non_deterministic_encryption 採用した方法 まとめ Activ…
tech.studyplus.co.jp

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