Fix up start/end dates and display them in a more friendly way.
[arvados.git] / services / api / app / models / job.rb
index f32f001f90b39f3fa311129e2704603c137c3667..9c8f724120ba8049b4a498141e669c5708ca0317 100644 (file)
@@ -58,6 +58,10 @@ class Job < ArvadosModel
 
   protected
 
+  def foreign_key_attributes
+    super + %w(output log)
+  end
+
   def ensure_script_version_is_commit
     if self.is_locked_by_uuid and self.started_at
       # Apparently client has already decided to go for it. This is