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

20200701093859_add_import_export_limits_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: 6f40f4393859834683a24b4ff7ca60e2ecd465da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class AddImportExportLimitsToApplicationSettings < ActiveRecord::Migration[6.0]
  DOWNTIME = false

  def change
    add_column :application_settings, :project_import_limit, :integer, default: 6, null: false
    add_column :application_settings, :project_export_limit, :integer, default: 6, null: false
    add_column :application_settings, :project_download_export_limit, :integer, default: 1, null: false

    add_column :application_settings, :group_import_limit, :integer, default: 6, null: false
    add_column :application_settings, :group_export_limit, :integer, default: 6, null: false
    add_column :application_settings, :group_download_export_limit, :integer, default: 1, null: false
  end
end