summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-27 10:13:37 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-27 10:13:37 +0100
commit784c1eab8b6b19e00f38aa4a1f50f4ccbe11fc89 (patch)
tree72f9a338251fbd1fbea33ef7d03a600f7da80429
parentb11fe0c0c84ea91a27dba87e4c891caf5097440d (diff)
Delete a restore_job entry after a restore procedure.
-rw-r--r--lib/tasks/backup.rake4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tasks/backup.rake b/lib/tasks/backup.rake
index c4a4b47..39a4282 100644
--- a/lib/tasks/backup.rake
+++ b/lib/tasks/backup.rake
@@ -44,6 +44,10 @@ namespace :backup do
FaxDocument.all.each do |fax_document|
fax_document.render_thumbnails
end
+
+ # Delete the restore_job. No need to waste that space.
+ #
+ restore_job.destroy
end
end