debian-mirror-gitlab/db/post_migrate/20220628012902_finalise_project_namespace_members.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
477 B
Ruby
Raw Permalink Normal View History

2022-08-13 15:12:31 +05:30
# frozen_string_literal: true
class FinaliseProjectNamespaceMembers < Gitlab::Database::Migration[2.0]
MIGRATION = 'BackfillProjectMemberNamespaceId'
disable_ddl_transaction!
restrict_gitlab_migration gitlab_schema: :gitlab_main
def up
ensure_batched_background_migration_is_finished(
job_class_name: MIGRATION,
table_name: :members,
column_name: :id,
job_arguments: [],
finalize: true
)
end
def down
# no-op
end
end