gitlab-org--gitlab-foss/db/migrate/20220616182038_create_sbom_occurrences.rb

14 lines
436 B
Ruby

# frozen_string_literal: true
class CreateSbomOccurrences < Gitlab::Database::Migration[2.0]
def change
create_table :sbom_occurrences do |t|
t.timestamps_with_timezone
t.bigint :component_version_id, null: false, index: true
t.bigint :project_id, null: false, index: true
t.bigint :pipeline_id, index: true
t.bigint :source_id, index: true
t.binary :commit_sha, null: false
end
end
end