From 5cfafaaa46435f70ac92f3cc985e1b7a610283f0 Mon Sep 17 00:00:00 2001 From: Nicolas Florentin Date: Fri, 29 Sep 2023 14:33:50 +0200 Subject: [PATCH] updates rake task fablab:chain:all --- lib/tasks/fablab/chain.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/fablab/chain.rake b/lib/tasks/fablab/chain.rake index 1f06b93eb..0a93a766a 100644 --- a/lib/tasks/fablab/chain.rake +++ b/lib/tasks/fablab/chain.rake @@ -4,7 +4,7 @@ namespace :fablab do namespace :chain do desc 'assign all footprints to existing records' task :all, [:force] => :environment do |_task, args| - if Invoice.where.not(footprint: nil).count.positive? && args.force != 'force' + if args.force != 'force' print 'All footprints will be regenerated. Are you sure? (y/n) ' confirm = $stdin.gets.chomp next unless confirm == 'y'