diff options
Diffstat (limited to 'db/post_migrate/20201026051643_remove_scanned_resources_count_from_security_scans.rb')
-rw-r--r-- | db/post_migrate/20201026051643_remove_scanned_resources_count_from_security_scans.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/post_migrate/20201026051643_remove_scanned_resources_count_from_security_scans.rb b/db/post_migrate/20201026051643_remove_scanned_resources_count_from_security_scans.rb new file mode 100644 index 00000000000..208448e2278 --- /dev/null +++ b/db/post_migrate/20201026051643_remove_scanned_resources_count_from_security_scans.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class RemoveScannedResourcesCountFromSecurityScans < ActiveRecord::Migration[6.0] + DOWNTIME = false + + def up + remove_column :security_scans, :scanned_resources_count + end + + def down + add_column :security_scans, :scanned_resources_count, :integer + end +end |