debian-mirror-gitlab/db/migrate/20190913174707_add_spdx_id_to_software_licenses.rb
2020-05-24 23:13:21 +05:30

16 lines
370 B
Ruby

# frozen_string_literal: true
class AddSpdxIdToSoftwareLicenses < ActiveRecord::Migration[5.2]
DOWNTIME = false
# rubocop:disable Migration/PreventStrings
def up
add_column :software_licenses, :spdx_identifier, :string, limit: 255
end
# rubocop:enable Migration/PreventStrings
def down
remove_column :software_licenses, :spdx_identifier
end
end