Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-06-28 14:16:48 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-06-28 14:16:48 +0300
commit0a294698db01112c407575e690a8a368be6b15f8 (patch)
treeda9cecaebe37d2d982fb45c80d2eefd138d3d78c /db/migrate/20160628085157_add_artifacts_size_to_ci_builds.rb
parentfe0c59d2e61238e1241be448a37be0e3e702a5ce (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/20160628085157_add_artifacts_size_to_ci_builds.rb')
-rw-r--r--db/migrate/20160628085157_add_artifacts_size_to_ci_builds.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20160628085157_add_artifacts_size_to_ci_builds.rb b/db/migrate/20160628085157_add_artifacts_size_to_ci_builds.rb
new file mode 100644
index 00000000000..6e6e9dc3163
--- /dev/null
+++ b/db/migrate/20160628085157_add_artifacts_size_to_ci_builds.rb
@@ -0,0 +1,10 @@
+# See http://doc.gitlab.com/ce/development/migration_style_guide.html
+# for more information on how to write migrations for GitLab.
+
+class AddArtifactsSizeToCiBuilds < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ def change
+ add_column(:ci_builds, :artifacts_size, :integer)
+ end
+end