debian-mirror-gitlab/db/post_migrate/20170131214021_reset_users_authorized_projects_populated.rb
2019-01-03 12:48:30 +05:30

19 lines
459 B
Ruby

# rubocop:disable Migration/UpdateLargeTable
# rubocop:disable Migration/UpdateColumnInBatches
class ResetUsersAuthorizedProjectsPopulated < ActiveRecord::Migration
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