2019-10-30 15:14:17 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddMarkForDeletionToProjects < ActiveRecord::Migration[5.2]
|
|
|
|
# Set this constant to true if this migration requires downtime.
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2020-03-30 15:07:51 +00:00
|
|
|
# rubocop:disable Migration/AddColumnsToWideTables
|
2019-10-30 15:14:17 +00:00
|
|
|
def change
|
|
|
|
add_column :projects, :marked_for_deletion_at, :date
|
|
|
|
add_column :projects, :marked_for_deletion_by_user_id, :integer
|
|
|
|
end
|
2020-03-30 15:07:51 +00:00
|
|
|
# rubocop:enable Migration/AddColumnsToWideTables
|
2019-10-30 15:14:17 +00:00
|
|
|
end
|