2021-10-06 19:33:49 +02:00
|
|
|
class Cron::PurgeManagerAdministrateurSessionsJob < Cron::CronJob
|
|
|
|
self.schedule_expression = "every day at 3 am"
|
|
|
|
|
|
|
|
def perform
|
2022-02-02 18:49:39 +01:00
|
|
|
# TODO: add id column to administrateurs_procedures and use destroy_all
|
|
|
|
AdministrateursProcedure.where(manager: true).delete_all
|
2022-07-25 09:01:11 +02:00
|
|
|
AssignTo.where(manager: true).destroy_all
|
2021-10-06 19:33:49 +02:00
|
|
|
end
|
|
|
|
end
|