diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-08 00:07:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-08 00:07:54 +0300 |
commit | 8c8b94e7116fa478ad490bd14c09565d23097f57 (patch) | |
tree | 9e4637aa0fe498a5523c86932b87ff691ec72af6 /db/migrate/20190913174707_add_spdx_id_to_software_licenses.rb | |
parent | eadb77d89f5f7d445bfd326f18873168f4719f12 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20190913174707_add_spdx_id_to_software_licenses.rb')
-rw-r--r-- | db/migrate/20190913174707_add_spdx_id_to_software_licenses.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20190913174707_add_spdx_id_to_software_licenses.rb b/db/migrate/20190913174707_add_spdx_id_to_software_licenses.rb new file mode 100644 index 00000000000..66cd450895c --- /dev/null +++ b/db/migrate/20190913174707_add_spdx_id_to_software_licenses.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class AddSpdxIdToSoftwareLicenses < ActiveRecord::Migration[5.2] + DOWNTIME = false + + def up + add_column :software_licenses, :spdx_identifier, :string, limit: 255 + end + + def down + remove_column :software_licenses, :spdx_identifier + end +end |