feat(PurgeManagerAdministrateurSessionsJob): also purge instructeur assign_tos

This commit is contained in:
Martin 2022-07-25 09:01:11 +02:00 committed by mfo
parent dc524cf615
commit 45e0c15eb0

View file

@ -4,5 +4,6 @@ class Cron::PurgeManagerAdministrateurSessionsJob < Cron::CronJob
def perform
# TODO: add id column to administrateurs_procedures and use destroy_all
AdministrateursProcedure.where(manager: true).delete_all
AssignTo.where(manager: true).destroy_all
end
end