From 9391eea6df53f47619796bbbfea2023e84a238a8 Mon Sep 17 00:00:00 2001 From: Luka Murn Date: Tue, 30 Aug 2016 13:04:58 +0200 Subject: [PATCH] Add experiment thumbnails generation to fake data rake --- lib/tasks/db_fake_data.rake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/tasks/db_fake_data.rake b/lib/tasks/db_fake_data.rake index eaa6b83e3..5db898565 100644 --- a/lib/tasks/db_fake_data.rake +++ b/lib/tasks/db_fake_data.rake @@ -942,6 +942,11 @@ namespace :db do create_private_user_organization(user, DEFAULT_PRIVATE_ORG_NAME) end + # Generate thumbnails of all experiments + Experiment.find_each do |experiment| + experiment.generate_workflow_img + end + # Calculate space taken by each organization; this must # be done in a separate transaction because the estimated # asset sizes are calculated in after_commit, which is done