2020-03-11 08:09:26 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddInstanceToServices < ActiveRecord::Migration[6.0]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2020-03-18 14:09:35 -04:00
|
|
|
# rubocop:disable Migration/AddColumnWithDefault
|
|
|
|
# rubocop:disable Migration/UpdateLargeTable
|
2020-03-11 08:09:26 -04:00
|
|
|
def up
|
|
|
|
add_column_with_default(:services, :instance, :boolean, default: false)
|
|
|
|
end
|
2020-03-18 14:09:35 -04:00
|
|
|
# rubocop:enable Migration/AddColumnWithDefault
|
|
|
|
# rubocop:enable Migration/UpdateLargeTable
|
2020-03-11 08:09:26 -04:00
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:services, :instance)
|
|
|
|
end
|
|
|
|
end
|