<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yskoht</author_name>
  <author_url>https://blog.hatena.ne.jp/yskoht/</author_url>
  <blog_title>yskoht's blog</blog_title>
  <blog_url>https://yskoht.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
  </categories>
  <description>transactionをネストしたときに、子のtransaction内でActiveRecord::Rollbackを投げてもロールバックされない。 irb(main):059:0&gt; User.transaction do irb(main):060:1* User.create(username: 'Kotori') irb(main):061:1&gt; User.transaction do irb(main):062:2* User.create(username: 'Nemu') irb(main):063:2&gt; raise ActiveRecord::Rollback irb(main)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyskoht.hatenablog.com%2Fentry%2F2019%2F07%2F18%2F234129&quot; title=&quot;  [Rails] Active Record Transactions の requires_new - yskoht&amp;#39;s blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-07-18 23:41:29</published>
  <title>  [Rails] Active Record Transactions の requires_new</title>
  <type>rich</type>
  <url>https://yskoht.hatenablog.com/entry/2019/07/18/234129</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
