mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-21 23:43:41 +00:00
17 lines
587 B
Ruby
17 lines
587 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreatePartialScanTable < Gitlab::Database::Migration[2.3]
|
|
milestone '18.2'
|
|
|
|
def change
|
|
# rubocop:disable Migration/EnsureFactoryForTable -- Ruby namespace differs from table prefix
|
|
create_table :vulnerability_partial_scans, id: false do |t|
|
|
t.timestamps_with_timezone null: false
|
|
t.bigint :scan_id, null: false, primary_key: true, index: true, default: nil
|
|
t.bigint :project_id, null: false, index: true
|
|
t.integer :mode, limit: 2, null: false
|
|
end
|
|
# rubocop:enable Migration/EnsureFactoryForTable
|
|
end
|
|
end
|