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

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

class IncreaseSelfHostedAttachmentSizeLimit < Gitlab::Database::Migration[2.1]
  enable_lock_retries!

  def up
    change_column_default :application_settings, :max_attachment_size, from: 10, to: 100
  end

  def down
    change_column_default :application_settings, :max_attachment_size, from: 100, to: 10
  end
end