2019-10-07 21:07:54 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddSpdxIdToSoftwareLicenses < ActiveRecord::Migration[5.2]
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2020-04-21 15:21:10 +00:00
|
|
|
# rubocop:disable Migration/PreventStrings
|
2019-10-07 21:07:54 +00:00
|
|
|
def up
|
|
|
|
add_column :software_licenses, :spdx_identifier, :string, limit: 255
|
|
|
|
end
|
2020-04-21 15:21:10 +00:00
|
|
|
# rubocop:enable Migration/PreventStrings
|
2019-10-07 21:07:54 +00:00
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :software_licenses, :spdx_identifier
|
|
|
|
end
|
|
|
|
end
|