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
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ci/job_variable.rb')
-rw-r--r--app/models/ci/job_variable.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/ci/job_variable.rb b/app/models/ci/job_variable.rb
index 573999995bc..21c9842399e 100644
--- a/app/models/ci/job_variable.rb
+++ b/app/models/ci/job_variable.rb
@@ -5,8 +5,11 @@ module Ci
include Ci::Partitionable
include Ci::NewHasVariable
include Ci::RawVariable
+ include SafelyChangeColumnDefault
include BulkInsertSafe
+ columns_changing_default :partition_id
+
belongs_to :job, class_name: "Ci::Build", foreign_key: :job_id, inverse_of: :job_variables
partitionable scope: :job