Task to add test_started_at to all procedures
This commit is contained in:
parent
0c54220c2b
commit
32787d7431
1 changed files with 8 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue