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

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

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

  def change
    change_column_default(:plan_limits, :maven_max_file_size, from: 50.megabytes, to: 3.gigabytes)
    change_column_default(:plan_limits, :conan_max_file_size, from: 50.megabytes, to: 3.gigabytes)
    change_column_default(:plan_limits, :nuget_max_file_size, from: 50.megabytes, to: 500.megabytes)
    change_column_default(:plan_limits, :npm_max_file_size,   from: 50.megabytes, to: 500.megabytes)
    change_column_default(:plan_limits, :pypi_max_file_size,  from: 50.megabytes, to: 3.gigabytes)
  end
end