summaryrefslogtreecommitdiff
path: root/db/migrate/20191003161031_add_mark_for_deletion_to_projects.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20191003161031_add_mark_for_deletion_to_projects.rb')
-rw-r--r--db/migrate/20191003161031_add_mark_for_deletion_to_projects.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20191003161031_add_mark_for_deletion_to_projects.rb b/db/migrate/20191003161031_add_mark_for_deletion_to_projects.rb
new file mode 100644
index 00000000000..86d581a4383
--- /dev/null
+++ b/db/migrate/20191003161031_add_mark_for_deletion_to_projects.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class AddMarkForDeletionToProjects < ActiveRecord::Migration[5.2]
+ # Set this constant to true if this migration requires downtime.
+ DOWNTIME = false
+
+ def change
+ add_column :projects, :marked_for_deletion_at, :date
+ add_column :projects, :marked_for_deletion_by_user_id, :integer
+ end
+end