From 4c567632e5eacbd5e1ffd21d2f5f1c5c96c94205 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 9 Mar 2022 17:53:49 +0100 Subject: [PATCH] fix(migration): add with_discarded to seed_hidden_at_dossiers --- lib/tasks/deployment/20220309101504_seed_hidden_at_dossiers.rake | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/tasks/deployment/20220309101504_seed_hidden_at_dossiers.rake b/lib/tasks/deployment/20220309101504_seed_hidden_at_dossiers.rake index 4d12f3e26..ffdb19e0d 100644 --- a/lib/tasks/deployment/20220309101504_seed_hidden_at_dossiers.rake +++ b/lib/tasks/deployment/20220309101504_seed_hidden_at_dossiers.rake @@ -4,6 +4,7 @@ namespace :after_party do puts "Running deploy task 'seed_hidden_at_dossiers'" Dossier + .with_discarded .where.not(hidden_at: nil) .where(hidden_by_user_at: nil, hidden_by_administration_at: nil) .update_all('hidden_by_user_at = hidden_at, hidden_by_administration_at = hidden_at')