Skip to content

Commit

Permalink
Revert "Use update_all as its safe to bypass validation"
Browse files Browse the repository at this point in the history
This reverts commit 839ffc4.
  • Loading branch information
starswan committed Sep 12, 2024
1 parent a9db115 commit b6afb59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ def perform
JobApplication.joins(:vacancy)
.draft
.merge(Vacancy.expired)
.update_all(status: "withdrawn")
.find_each { |ja| ja.update!(status: "withdrawn") }
end
end

0 comments on commit b6afb59

Please sign in to comment.