2019-09-04 21:01:54 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddCommentToVulnerabilityFeedback < ActiveRecord::Migration[5.1]
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
|
|
|
add_column :vulnerability_feedback, :comment_author_id, :integer
|
2020-05-24 23:13:21 +05:30
|
|
|
add_column :vulnerability_feedback, :comment, :text # rubocop:disable Migration/AddLimitToTextColumns
|
2019-09-04 21:01:54 +05:30
|
|
|
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
|