2020-07-14 05:09:02 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddTraversalIdsToNamespaces < ActiveRecord::Migration[6.0]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
|
|
|
with_lock_retries do
|
2021-01-27 07:09:01 -05:00
|
|
|
add_column :namespaces, :traversal_ids, :integer, array: true, default: [], null: false # rubocop:disable Migration/AddColumnsToWideTables
|
2020-07-14 05:09:02 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
with_lock_retries do
|
|
|
|
remove_column :namespaces, :traversal_ids
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|