summaryrefslogtreecommitdiff
path: root/db/migrate/20220608074738_add_max_repository_downloads_limit_to_application_settings.rb
blob: 9252262c26f4da458943b42e079f264c12d74171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class AddMaxRepositoryDownloadsLimitToApplicationSettings < Gitlab::Database::Migration[2.0]
  def change
    add_column :application_settings, :max_number_of_repository_downloads,
      :smallint,
      default: 0,
      null: false

    add_column :application_settings, :max_number_of_repository_downloads_within_time_period,
      :integer,
      default: 0,
      null: false
  end
end