blob: aea99c8c0ce580a8da8a2671178cf6f2a61e23f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# 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
|