naopoyo.com
  • Docs
  • Tags
  • Bookmarks
  • Tools
  • About
  • Docs
  • Tags
  • Bookmarks
  • Tools
  • About

目次

© naopoyo

🌑

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

公開日
21日前
2025-10-18
更新日
20日前
2025-10-19
更新履歴
GitHubで見る
  • Ruby
  • Rails

コマンドメモ

Terminal
bundle update
Terminal
bundle clean --force

メモ

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

ブックマーク

Railsを8.0にアップグレードした際の手順や知見をまとめる
zenn.dev favicon
zenn.dev
Railsを8.0にアップグレードした際の手順や知見をまとめる
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 favicon
github.com
GitHub - drwl/annotaterb: A Ruby Gem that adds annotations to your Rails models and route files.

Rails7.1へのアップグレードで発生した暗号化のエラーとその対応 - Studyplus Engineering Blog
こんにちは。サーバーグループ エンジニアの山田です。 今回はRails7.0からRails7.1へのアップグレードを行なった際に、ActiveRecord Encryptionで発生したエラーとその対応について紹介します。 同様のエラーに遭遇した方の参考になれば幸いです。 ActiveRecord Encryptionによる属性の暗号化 決定論的暗号化と非決定論的暗号化 発生した事象 エラーの原因 SHA256に変わった経緯 対応方法 hash_digest_class support_sha1_for_
studyplus.co.jp favicon
studyplus.co.jp
Rails7.1へのアップグレードで発生した暗号化のエラーとその対応 - Studyplus Engineering Blog
config.active_record.encryption.support_sha1_for_non_deterministic_encryption = true

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

目次

最近更新された記事

🎮
ゲーム開発日記4
5日前 - 2025年11月03日
  • Unity
  • ゲーム開発
🐩
開発日記-2025-11-02 / git worktree について調べる
6日前 - 2025年11月02日
  • 開発日記
🌇
開発日記-2025-10-31 / Xのブックマークに入れてたサイトを読む
9日前 - 2025年10月31日
  • 開発日記