summaryrefslogtreecommitdiff
path: root/db/migrate/20220406113217_add_inactive_project_deletion_to_application_settings.rb
blob: ffb0fe3f5d85142536afbe79925ae278aaee7ddd (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class AddInactiveProjectDeletionToApplicationSettings < Gitlab::Database::Migration[1.0]
  def change
    add_column :application_settings, :delete_inactive_projects, :boolean, default: false, null: false
    add_column :application_settings, :inactive_projects_delete_after_months, :integer, default: 2, null: false
    add_column :application_settings, :inactive_projects_min_size_mb, :integer, default: 0, null: false
    add_column :application_settings, :inactive_projects_send_warning_email_after_months,
      :integer, default: 1, null: false
  end
end