Commit f89db395 authored by Douwe Maan's avatar Douwe Maan Committed by Robert Speicher

Merge branch 'fix/project-destroy-callbacks' into 'master'

Fix project destroy callback

See gitlab-org/gitlab-ee!107.

See merge request !2307
parent 686909b4
...@@ -54,6 +54,8 @@ module Ci ...@@ -54,6 +54,8 @@ module Ci
# To prevent db load megabytes of data from trace # To prevent db load megabytes of data from trace
default_scope -> { select(Ci::Build.columns_without_lazy) } default_scope -> { select(Ci::Build.columns_without_lazy) }
before_destroy { project }
class << self class << self
def columns_without_lazy def columns_without_lazy
(column_names - LAZY_ATTRIBUTES).map do |column_name| (column_names - LAZY_ATTRIBUTES).map do |column_name|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment