blob: e73963043d58ff9a1b67543f769f053e4f10aa2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# frozen_string_literal: true
class AddDefaultToCiPipelineLocked < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME = false
ARTIFACTS_LOCKED = 1
UNLOCKED = 0
def up
with_lock_retries do
change_column_default :ci_pipelines, :locked, ARTIFACTS_LOCKED
end
end
def down
with_lock_retries do
change_column_default :ci_pipelines, :locked, UNLOCKED
end
end
end
|