summaryrefslogtreecommitdiff
path: root/db/migrate/20220317170122_add_notification_level_to_namespace_root_storage_statistics.rb
blob: 3c0b41e0b42f034bbca79e76c390d244affec9da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AddNotificationLevelToNamespaceRootStorageStatistics < Gitlab::Database::Migration[1.0]
  enable_lock_retries!

  def up
    add_column :namespace_root_storage_statistics, :notification_level, :integer, limit: 2, default: 100, null: false
  end

  def down
    remove_column :namespace_root_storage_statistics, :notification_level
  end
end