diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-03-20 12:57:36 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-03-20 12:57:36 +0300 |
commit | d685633a833a580ed607faf84cb1398798178acb (patch) | |
tree | 7697ee2acb93dbd1c1e42b4ec7fd28b97621d34c /app | |
parent | 216ead607cb3549e9d4ac36b2c1c84507fe97200 (diff) | |
parent | 301c4ef9502e02799e64937b35fb47b2e15827b3 (diff) |
Merge branch 'fix/sm/erase_old_trace' into 'master'
Use update_column than write_attribute and save
Closes #44366
See merge request gitlab-org/gitlab-ce!17861
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/build.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index c1da2081465..e68c1012199 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -328,8 +328,7 @@ module Ci end def erase_old_trace! - write_attribute(:trace, nil) - save + update_column(:trace, nil) end def needs_touch? |