{"blog_title":"yskoht's blog","published":"2019-07-18 23:41:29","blog_url":"https://yskoht.hatenablog.com/","description":"transaction\u3092\u30cd\u30b9\u30c8\u3057\u305f\u3068\u304d\u306b\u3001\u5b50\u306etransaction\u5185\u3067ActiveRecord::Rollback\u3092\u6295\u3052\u3066\u3082\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3055\u308c\u306a\u3044\u3002 irb(main):059:0> User.transaction do irb(main):060:1* User.create(username: 'Kotori') irb(main):061:1> User.transaction do irb(main):062:2* User.create(username: 'Nemu') irb(main):063:2> raise ActiveRecord::Rollback irb(main)\u2026","author_name":"yskoht","title":"  [Rails] Active Record Transactions \u306e requires_new","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyskoht.hatenablog.com%2Fentry%2F2019%2F07%2F18%2F234129\" title=\"  [Rails] Active Record Transactions \u306e requires_new - yskoht&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","type":"rich","categories":["Ruby on Rails"],"provider_name":"Hatena Blog","image_url":null,"width":"100%","provider_url":"https://hatena.blog","height":"190","author_url":"https://blog.hatena.ne.jp/yskoht/","url":"https://yskoht.hatenablog.com/entry/2019/07/18/234129"}