blob: aded62e08b3aa7e2a476f6b2250874b0baca1766 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# rubocop:disable RemoveIndex
class AddIndexToProjectAuthorizations < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index(:project_authorizations, :project_id)
end
def down
remove_index(:project_authorizations, :project_id) if
Gitlab::Database.postgresql?
end
end
|