Skip to content

Commit 9b5db35

Browse files
committed
add example for :mode keyword
1 parent e978d82 commit 9b5db35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Post.statement_timeout 10.minutes do |conn|
6464
conn.transaction { archive_old_posts }
6565
end
6666

67-
Tag.statement_timeout 6.hours do |conn|
67+
Tag.statement_timeout 6.hours, mode: :session do |conn|
6868
conn.execute 'VACUUM ANALYZE tags'
6969
end
7070
```

0 commit comments

Comments
 (0)