diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-30 09:08:37 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-30 09:08:37 +0000 |
commit | e860bae967a4fa90213ff1980fac0bea8f894366 (patch) | |
tree | fc0b14df1f44d8e8393a2dd9b5b62aa2ed6630e9 /db/migrate/20200625082258_add_snippets_size_to_root_storage_statistics.rb | |
parent | 0bc8084ef319ca1df4bfb885e66facd04b0540db (diff) | |
download | gitlab-ce-e860bae967a4fa90213ff1980fac0bea8f894366.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20200625082258_add_snippets_size_to_root_storage_statistics.rb')
-rw-r--r-- | db/migrate/20200625082258_add_snippets_size_to_root_storage_statistics.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/db/migrate/20200625082258_add_snippets_size_to_root_storage_statistics.rb b/db/migrate/20200625082258_add_snippets_size_to_root_storage_statistics.rb new file mode 100644 index 00000000000..7dd0bd94805 --- /dev/null +++ b/db/migrate/20200625082258_add_snippets_size_to_root_storage_statistics.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +class AddSnippetsSizeToRootStorageStatistics < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def up + with_lock_retries do + add_column :namespace_root_storage_statistics, :snippets_size, :bigint, default: 0, null: false + end + end + + def down + with_lock_retries do + remove_column :namespace_root_storage_statistics, :snippets_size + end + end +end |