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:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-03-14 18:49:24 +0300
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-03-14 18:49:24 +0300
commit021d53c96d308df7c721984435442993357a3414 (patch)
tree13bd15cb10952efd5c759a5dee5b8de6f243e056 /db/migrate/20160314143402_projects_add_pushes_since_gc.rb
parenta02fe251df7ea7316f51850fe603e7e5ac4431e2 (diff)
Run 'git gc' every 10 pushes
Diffstat (limited to 'db/migrate/20160314143402_projects_add_pushes_since_gc.rb')
-rw-r--r--db/migrate/20160314143402_projects_add_pushes_since_gc.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20160314143402_projects_add_pushes_since_gc.rb b/db/migrate/20160314143402_projects_add_pushes_since_gc.rb
new file mode 100644
index 00000000000..5d30a38bc99
--- /dev/null
+++ b/db/migrate/20160314143402_projects_add_pushes_since_gc.rb
@@ -0,0 +1,5 @@
+class ProjectsAddPushesSinceGc < ActiveRecord::Migration
+ def change
+ add_column :projects, :pushes_since_gc, :integer, default: 0
+ end
+end