diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-06-28 14:16:48 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-06-28 14:16:48 +0300 |
commit | 0a294698db01112c407575e690a8a368be6b15f8 (patch) | |
tree | da9cecaebe37d2d982fb45c80d2eefd138d3d78c /db/migrate | |
parent | fe0c59d2e61238e1241be448a37be0e3e702a5ce (diff) |
Just save the size in total rather than individual files
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12741046
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20160628085157_add_artifacts_size_to_ci_builds.rb (renamed from db/migrate/20160628085157_add_artifacts_sizes_to_ci_builds.rb) | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/db/migrate/20160628085157_add_artifacts_sizes_to_ci_builds.rb b/db/migrate/20160628085157_add_artifacts_size_to_ci_builds.rb index bad260b83ea..6e6e9dc3163 100644 --- a/db/migrate/20160628085157_add_artifacts_sizes_to_ci_builds.rb +++ b/db/migrate/20160628085157_add_artifacts_size_to_ci_builds.rb @@ -1,11 +1,10 @@ # See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. -class AddArtifactsSizesToCiBuilds < ActiveRecord::Migration +class AddArtifactsSizeToCiBuilds < ActiveRecord::Migration include Gitlab::Database::MigrationHelpers def change - # Or :json if under PostgreSQL? - add_column(:ci_builds, :artifacts_sizes, :text) + add_column(:ci_builds, :artifacts_size, :integer) end end |