debian-mirror-gitlab/db/post_migrate/20201026051643_remove_scanned_resources_count_from_security_scans.rb
2021-01-29 00:20:46 +05:30

14 lines
297 B
Ruby

# 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