mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
Add experiment thumbnails generation to fake data rake
This commit is contained in:
parent
491459f63a
commit
9391eea6df
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue