質問編集履歴

1

a

2021/05/22 11:05

投稿

k499778
k499778

スコア599

test CHANGED
File without changes
test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  hoge.presence || ActiveRecord::Base.transaction(isolation: :read_committed) do
16
16
 
17
- fuga = Book.find(1)
17
+ fuga = User.find(1).lock!
18
18
 
19
19
  fuga
20
20