---
title: "Discussion on \"Rails 7.1 Active Record Transaction on return, break and throw\" | Hashnode"
description: "Discussion on \"Rails 7.1 Active Record Transaction on return, break and throw\". In the latest Rails, a significant change has been made to the behaviour of transactions. Specifically, using return, break, or throw statements will no longer trigger an automatic rollback of the transaction.\nIn Rails 6.1 use of return, break, and t..."
url: "https://hashnode.com/posts/rails-71-active-record-transaction-on-return-break-and-throw/652396574043123d3f65ee2f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Rails 7.1 Active Record Transaction on return, break and throw](https://raysrashmi.hashnode.dev/rails-71-active-record-transaction-on-return-break-and-throw?utm_source=hashnode&utm_medium=feed)

In the latest Rails, a significant change has been made to the behaviour of transactions. Specifically, using return, break, or throw statements will no longer trigger an automatic rollback of the transaction. In Rails 6.1 use of return, break, and t...

Oct 9, 2023 · 2 min read · raysrashmi.hashnode.dev  
Read the article

-   [#rails-71](https://hashnode.com/tag/rails-71)
-   [#activerecord](https://hashnode.com/tag/activerecord)
-   [#rails](https://hashnode.com/tag/rails)
-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)

## Written by

[Rashmi Yadav](https://hashnode.com/@raysrashmi)

@raysrashmi · India

  
[View profile](https://hashnode.com/@raysrashmi)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
