Ci::Build#erase_old_trace! fails cleaning the data

The erase_old_trace! nullifies attribute, but later performs the save with object validation.

For old objects it fails, as they are incomplete.

We should change this method to:

def erase_old_trace!
  update_column(:trace, nil)
end
Edited Mar 16, 2018 by Kamil Trzciński
Assignee Loading
Time tracking Loading