Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20221103205317_create_dast_pre_scan_verification.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 85375be53b55942280bd7247dbbca7d01e1e7eba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

class CreateDastPreScanVerification < Gitlab::Database::Migration[2.0]
  def up
    create_table :dast_pre_scan_verifications do |t|
      t.references :dast_profile, null: false, foreign_key: { on_delete: :cascade },
                                  index: { name: 'index_dast_pre_scan_verifications_on_dast_profile_id' }

      t.bigint :ci_pipeline_id, null: false

      t.timestamps_with_timezone

      t.integer :status, default: 0, limit: 2, null: false

      t.index :ci_pipeline_id, unique: true, name: :index_dast_pre_scan_verifications_on_ci_pipeline_id
    end
  end

  def down
    drop_table :dast_pre_scan_verifications
  end
end