debian-mirror-gitlab/db/migrate/20220616182015_create_sbom_component_versions.rb
2022-08-13 15:12:31 +05:30

15 lines
407 B
Ruby

# frozen_string_literal: true
class CreateSbomComponentVersions < Gitlab::Database::Migration[2.0]
def change
create_table :sbom_component_versions do |t|
t.timestamps_with_timezone
t.references :component,
index: true,
null: false,
foreign_key: { to_table: :sbom_components, on_delete: :cascade }
t.text :version, null: false, limit: 255
end
end
end