debian-mirror-gitlab/db/migrate/20221207220120_create_dast_scanner_profiles_runner_tags.rb
2023-03-04 22:38:38 +05:30

19 lines
565 B
Ruby

# frozen_string_literal: true
class CreateDastScannerProfilesRunnerTags < Gitlab::Database::Migration[2.1]
def up
create_table :dast_scanner_profiles_tags do |t|
t.references :dast_scanner_profile, null: false, foreign_key: { on_delete: :cascade },
index: { name: 'i_dast_scanner_profiles_tags_on_scanner_profiles_id' }
t.bigint :tag_id, null: false
t.index :tag_id, name: :index_dast_scanner_profiles_tags_on_tag_id
end
end
def down
drop_table :dast_scanner_profiles_tags
end
end