debian-mirror-gitlab/db/migrate/20220119220620_add_scan_method_to_dast_site_profile.rb
2022-04-04 11:22:00 +05:30

12 lines
286 B
Ruby

# frozen_string_literal: true
class AddScanMethodToDastSiteProfile < Gitlab::Database::Migration[1.0]
def up
add_column :dast_site_profiles, :scan_method, :integer, limit: 2, default: 0, null: false
end
def down
remove_column :dast_site_profiles, :scan_method
end
end