debian-mirror-gitlab/db/migrate/20191114173508_add_resolved_attributes_to_vulnerabilities.rb

16 lines
394 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
class AddResolvedAttributesToVulnerabilities < ActiveRecord::Migration[5.2]
DOWNTIME = false
def up
add_column :vulnerabilities, :resolved_by_id, :bigint
add_column :vulnerabilities, :resolved_at, :datetime_with_timezone
end
def down
remove_column :vulnerabilities, :resolved_at
remove_column :vulnerabilities, :resolved_by_id
end
end