diff options
Diffstat (limited to 'db/post_migrate/20200730133730_remove_table_vulnerability_export_verification_status.rb')
-rw-r--r-- | db/post_migrate/20200730133730_remove_table_vulnerability_export_verification_status.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/db/post_migrate/20200730133730_remove_table_vulnerability_export_verification_status.rb b/db/post_migrate/20200730133730_remove_table_vulnerability_export_verification_status.rb new file mode 100644 index 00000000000..9aa15fa7d1a --- /dev/null +++ b/db/post_migrate/20200730133730_remove_table_vulnerability_export_verification_status.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +class RemoveTableVulnerabilityExportVerificationStatus < ActiveRecord::Migration[6.0] + DOWNTIME = false + + def up + return unless table_exists?(:vulnerability_export_verification_status) + + drop_table :vulnerability_export_verification_status + end + + def down + # no-op because `vulnerability_export_verification_status` table should not + # be created, see https://gitlab.com/gitlab-org/gitlab/-/issues/232977 + end +end |