0
0
Fork 0

Use touch_all with batches (#32799)

This commit is contained in:
Matt Jankowski 2024-11-08 05:00:15 -05:00 committed by GitHub
parent 4ef3a1a38d
commit df54196a14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ module Admin
def deactivate_all
authorize :invite, :deactivate_all?
Invite.available.in_batches.update_all(expires_at: Time.now.utc)
Invite.available.in_batches.touch_all(:expires_at)
redirect_to admin_invites_path
end