blob: 055a14ad729abda6c10a6d998612a054e6364a03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# rubocop:disable Migration/UpdateLargeTable
# rubocop:disable Migration/UpdateColumnInBatches
class ResetUsersAuthorizedProjectsPopulated < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
# This ensures we don't lock all users for the duration of the migration.
update_column_in_batches(:users, :authorized_projects_populated, nil)
end
def down
# noop
end
end
|