https://github.com/rails/rails/releases/tag/v7.0.5 割と非互換な変更が多いのでまとめておく has_one関連でのcreate_associationの挙動変更 https://github.com/rails/rails/pull/46386 のバックポートがさりげなくv7.0.5に入っている Supplier has_one Account (unique index付き) 既にaccountが登録されている際に「supplier.create_account!」を実行した時の挙動が変わる v7.0.4 ActiveRecord::RecordNotUnique 発生 v7.0.5 accountsがDELETE & INSERT される 同じ修正が原因だが、https://github.com/rails/rails/issues/4
![rails v7.0.5 非互換変更まとめメモ - ruby-jp](https://cdn-ak-scissors.b.st-hatena.com/image/square/d777b269771fcdc3ceef7e29a87190beed3dbf63/height=288;version=1;width=512/https%3A%2F%2Fscrapbox.io%2Fassets%2Fimg%2Fcontent-logo.png)