debian-mirror-gitlab/db/post_migrate/20170131214021_reset_users_authorized_projects_populated.rb

20 lines
497 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
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