Task to add test_started_at to all procedures

This commit is contained in:
Paul Chavard 2018-05-09 17:11:20 +01:00
parent 0c54220c2b
commit 32787d7431

View file

@ -0,0 +1,8 @@
namespace :'2018_05_09_add_test_started_at_to_procedure' do
task set: :environment do
Procedure.publiees_ou_archivees.where(test_started_at: nil).find_each do |procedure|
procedure.test_started_at = procedure.published_at
procedure.save
end
end
end