# frozen_string_literal: true

class AddCommentToVulnerabilityFeedback < ActiveRecord::Migration[5.1]
  DOWNTIME = false

  def up
    add_column :vulnerability_feedback, :comment_author_id, :integer
    add_column :vulnerability_feedback, :comment, :text
    add_column :vulnerability_feedback, :comment_timestamp, :datetime_with_timezone
  end

  def down
    remove_column :vulnerability_feedback, :comment_author_id
    remove_column :vulnerability_feedback, :comment
    remove_column :vulnerability_feedback, :comment_timestamp
  end
end
