diff options
Diffstat (limited to 'db/migrate/20220616182016_create_sbom_sources.rb')
-rw-r--r-- | db/migrate/20220616182016_create_sbom_sources.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20220616182016_create_sbom_sources.rb b/db/migrate/20220616182016_create_sbom_sources.rb new file mode 100644 index 00000000000..b4fe9519f7b --- /dev/null +++ b/db/migrate/20220616182016_create_sbom_sources.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +class CreateSbomSources < Gitlab::Database::Migration[2.0] + def change + create_table :sbom_sources do |t| + t.timestamps_with_timezone + t.integer :source_type, null: false, limit: 2 + t.jsonb :source, null: false, default: {} + t.binary :fingerprint, null: false + end + end +end |