Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-03-20 12:57:36 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2018-03-20 12:57:36 +0300
commitd685633a833a580ed607faf84cb1398798178acb (patch)
tree7697ee2acb93dbd1c1e42b4ec7fd28b97621d34c /app
parent216ead607cb3549e9d4ac36b2c1c84507fe97200 (diff)
parent301c4ef9502e02799e64937b35fb47b2e15827b3 (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.rb3
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?