summaryrefslogtreecommitdiff
path: root/db/migrate/20190913174707_add_spdx_id_to_software_licenses.rb
blob: 46e1400c39447fed73eef9fbf9eaeac9f7991329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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