[IT研修]注目キーワード Python UiPath(RPA) 最新技術動向 Microsoft Azure Docker Kubernetes 第2回 ActiveRecord::Base.transaction ロールバック編 (泉隼人) 2015年4月 こんにちは、トランスネットの泉です。 Ruby on Railsについてのコラムenjoy Railsway、第2回は「ActiveRecord::Base.transaction ロールバック編」 をお送りします。 複数のモデルを一度に更新するような処理をおこなう場合、原子性を担保するためにトランザクションを考慮した実装となるはずです。 Ruby on Railsでの開発では、 ActiveRecord::Base.transaction を利用することになります。 ロールバックされない?トランザクション さてこのtransact