debian-mirror-gitlab/db/migrate/20221101195309_create_package_metadata_licenses.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
313 B
Ruby
Raw Normal View History

2023-03-04 22:38:38 +05:30
# frozen_string_literal: true
class CreatePackageMetadataLicenses < Gitlab::Database::Migration[2.0]
def change
create_table :pm_licenses do |t|
t.text :spdx_identifier, null: false, limit: 50
t.index [:spdx_identifier], unique: true, name: 'i_pm_licenses_on_spdx_identifier'
end
end
end