Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20191011084019_add_project_deletion_adjourned_period_to_application_settings.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 79546e332530ba006ccacdb3adb26556a583286c (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class AddProjectDeletionAdjournedPeriodToApplicationSettings < ActiveRecord::Migration[5.2]
  DOWNTIME = false

  DEFAULT_NUMBER_OF_DAYS_BEFORE_REMOVAL = 7

  def change
    add_column :application_settings, :deletion_adjourned_period, :integer, default: DEFAULT_NUMBER_OF_DAYS_BEFORE_REMOVAL, null: false
  end
end