debian-mirror-gitlab/db/migrate/20191003161031_add_mark_for_deletion_to_projects.rb

14 lines
437 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
class AddMarkForDeletionToProjects < ActiveRecord::Migration[5.2]
# Set this constant to true if this migration requires downtime.
DOWNTIME = false
2020-04-22 19:07:51 +05:30
# rubocop:disable Migration/AddColumnsToWideTables
2019-12-26 22:10:19 +05:30
def change
add_column :projects, :marked_for_deletion_at, :date
add_column :projects, :marked_for_deletion_by_user_id, :integer
end
2020-04-22 19:07:51 +05:30
# rubocop:enable Migration/AddColumnsToWideTables
2019-12-26 22:10:19 +05:30
end