2019-12-26 22:10:19 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddCleanupStatusToCluster < ActiveRecord::Migration[5.2]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
# Set this constant to true if this migration requires downtime.
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
2020-04-08 14:13:33 +05:30
|
|
|
add_column_with_default(:clusters, :cleanup_status,
|
2019-12-26 22:10:19 +05:30
|
|
|
:smallint,
|
|
|
|
default: 1,
|
|
|
|
allow_null: false)
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:clusters, :cleanup_status)
|
|
|
|
end
|
|
|
|
end
|