diff --git a/db/docs/batched_background_migrations/backfill_default_branch_protection_settings.yml b/db/docs/batched_background_migrations/backfill_default_branch_protection_settings.yml
index 123c0fecf5fbad02f740d570841723ef6ae1ba0b..6a39d9166e50a93fe40ce9e20a6de36fa71bef34 100644
--- a/db/docs/batched_background_migrations/backfill_default_branch_protection_settings.yml
+++ b/db/docs/batched_background_migrations/backfill_default_branch_protection_settings.yml
@@ -1,8 +1,9 @@
 ---
 migration_job_name: BackfillDefaultBranchProtectionSettings
-description: This migration backfills column default_branch_protection_defaults of namespace settings table
+description: This migration backfills column default_branch_protection_defaults of
+  namespace settings table
 feature_category: source_code_management
 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/153306
 milestone: '17.1'
 queued_migration_version: 20240516160731
-finalized_by: # version of the migration that finalized this BBM
+finalized_by: '20241103232348'
diff --git a/db/post_migrate/20241103232348_finalize_backfill_default_branch_protection_settings.rb b/db/post_migrate/20241103232348_finalize_backfill_default_branch_protection_settings.rb
new file mode 100644
index 0000000000000000000000000000000000000000..c7c90904aa72a189f464677c8b22b4dd37a5fdf5
--- /dev/null
+++ b/db/post_migrate/20241103232348_finalize_backfill_default_branch_protection_settings.rb
@@ -0,0 +1,21 @@
+# frozen_string_literal: true
+
+class FinalizeBackfillDefaultBranchProtectionSettings < Gitlab::Database::Migration[2.2]
+  milestone '17.6'
+
+  disable_ddl_transaction!
+
+  restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+  def up
+    ensure_batched_background_migration_is_finished(
+      job_class_name: 'BackfillDefaultBranchProtectionSettings',
+      table_name: :namespaces,
+      column_name: :id,
+      job_arguments: [],
+      finalize: true
+    )
+  end
+
+  def down; end
+end
diff --git a/db/schema_migrations/20241103232348 b/db/schema_migrations/20241103232348
new file mode 100644
index 0000000000000000000000000000000000000000..1149d61a967d59010cf44f202096945eb2027c39
--- /dev/null
+++ b/db/schema_migrations/20241103232348
@@ -0,0 +1 @@
+c0fc454b6b019729923b587cd6ababe16f7c43c6efc9771e39c986962cd2a65e
\ No newline at end of file