debian-mirror-gitlab/db/migrate/20220406113217_add_inactive_project_deletion_to_application_settings.rb
2022-08-27 11:52:29 +05:30

12 lines
592 B
Ruby

# 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