2019-04-02 02:54:54 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddManagedToCluster < ActiveRecord::Migration[5.0]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
2020-02-27 16:09:17 -05:00
|
|
|
add_column_with_default(:clusters, :managed, :boolean, default: true)
|
2019-04-02 02:54:54 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:clusters, :managed)
|
|
|
|
end
|
|
|
|
end
|