Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. [4] pry(main)> ActiveRecord::Base.transaction do
  2. [4] pry(main)* User.first.update!(email: 'a@b.com')
  3. [4] pry(main)* ActiveRecord::Base.transaction do
  4. [4] pry(main)* User.first.update!(email: 'notvalidemail')
  5. [4] pry(main)* end
  6. [4] pry(main)* end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement