diff options
Diffstat (limited to 'db/post_migrate/20230523101514_finalize_user_type_migration.rb')
-rw-r--r-- | db/post_migrate/20230523101514_finalize_user_type_migration.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/db/post_migrate/20230523101514_finalize_user_type_migration.rb b/db/post_migrate/20230523101514_finalize_user_type_migration.rb new file mode 100644 index 00000000000..c6533bec587 --- /dev/null +++ b/db/post_migrate/20230523101514_finalize_user_type_migration.rb @@ -0,0 +1,22 @@ +# frozen_string_literal: true + +class FinalizeUserTypeMigration < Gitlab::Database::Migration[2.1] + MIGRATION = 'MigrateHumanUserType' + + restrict_gitlab_migration gitlab_schema: :gitlab_main + + disable_ddl_transaction! + + def up + ensure_batched_background_migration_is_finished( + job_class_name: MIGRATION, + table_name: :users, + column_name: :id, + job_arguments: [] + ) + end + + def down + # no-op + end +end |