summaryrefslogtreecommitdiff
path: root/db/migrate/20200314060834_add_scanned_resources_count_to_security_scan.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200314060834_add_scanned_resources_count_to_security_scan.rb')
-rw-r--r--db/migrate/20200314060834_add_scanned_resources_count_to_security_scan.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20200314060834_add_scanned_resources_count_to_security_scan.rb b/db/migrate/20200314060834_add_scanned_resources_count_to_security_scan.rb
new file mode 100644
index 00000000000..e8f7a693e99
--- /dev/null
+++ b/db/migrate/20200314060834_add_scanned_resources_count_to_security_scan.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+class AddScannedResourcesCountToSecurityScan < ActiveRecord::Migration[6.0]
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ add_column :security_scans, :scanned_resources_count, :integer
+ end
+
+ def down
+ remove_column :security_scans, :scanned_resources_count
+ end
+end