Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20220726154012_ensure_sbom_occurrences_is_empty.rb')
-rw-r--r--db/migrate/20220726154012_ensure_sbom_occurrences_is_empty.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/db/migrate/20220726154012_ensure_sbom_occurrences_is_empty.rb b/db/migrate/20220726154012_ensure_sbom_occurrences_is_empty.rb
deleted file mode 100644
index 18c48d1202d..00000000000
--- a/db/migrate/20220726154012_ensure_sbom_occurrences_is_empty.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-# frozen_string_literal: true
-
-class EnsureSbomOccurrencesIsEmpty < Gitlab::Database::Migration[2.0]
- disable_ddl_transaction!
-
- restrict_gitlab_migration gitlab_schema: :gitlab_main
-
- def up
- # Ensure that the sbom_occurrences table is empty to ensure that the
- # following migration adding a not-null column succeeds.
- # The code which creates records in this table has not been implemented yet.
- execute('DELETE FROM sbom_occurrences')
- end
-
- def down
- # no-op
- end
-end