summaryrefslogtreecommitdiff
path: root/app/models/ci/build_need.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ci/build_need.rb')
-rw-r--r--app/models/ci/build_need.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/ci/build_need.rb b/app/models/ci/build_need.rb
index 0b243c20e67..b977a5f4419 100644
--- a/app/models/ci/build_need.rb
+++ b/app/models/ci/build_need.rb
@@ -4,6 +4,8 @@ module Ci
class BuildNeed < ApplicationRecord
extend Gitlab::Ci::Model
+ include BulkInsertSafe
+
belongs_to :build, class_name: "Ci::Build", foreign_key: :build_id, inverse_of: :needs
validates :build, presence: true