Read about our upcoming Code of Conduct on this issue

20200324115359_add_namespace_storage_size_limit_to_application_settings.rb 421 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class AddNamespaceStorageSizeLimitToApplicationSettings < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false
  disable_ddl_transaction!

  def up
    add_column_with_default :application_settings, :namespace_storage_size_limit, :bigint, default: 0
  end

  def down
    remove_column :application_settings, :namespace_storage_size_limit
  end
end