blob: f31eaea5fa869704b3601148b0ddcbca010135fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# frozen_string_literal: true
class CreateDastProfilesTags < Gitlab::Database::Migration[2.1]
def up
create_table :dast_profiles_tags do |t|
t.references :dast_profile, null: false, foreign_key: { on_delete: :cascade },
index: { name: 'i_dast_profiles_tags_on_scanner_profiles_id' }
t.bigint :tag_id, null: false
t.index :tag_id, name: :index_dast_profiles_tags_on_tag_id
end
end
def down
drop_table :dast_profiles_tags
end
end
|