debian-mirror-gitlab/db/migrate/20190913174707_add_spdx_id_to_software_licenses.rb

16 lines
370 B
Ruby
Raw Normal View History

2019-12-21 20:55:43 +05:30
# frozen_string_literal: true
class AddSpdxIdToSoftwareLicenses < ActiveRecord::Migration[5.2]
DOWNTIME = false
2020-05-24 23:13:21 +05:30
# rubocop:disable Migration/PreventStrings
2019-12-21 20:55:43 +05:30
def up
add_column :software_licenses, :spdx_identifier, :string, limit: 255
end
2020-05-24 23:13:21 +05:30
# rubocop:enable Migration/PreventStrings
2019-12-21 20:55:43 +05:30
def down
remove_column :software_licenses, :spdx_identifier
end
end