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:
Diffstat (limited to 'db/ci/migrate/20150602000240_change_default_build_timeout.rb')
-rw-r--r--db/ci/migrate/20150602000240_change_default_build_timeout.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/ci/migrate/20150602000240_change_default_build_timeout.rb b/db/ci/migrate/20150602000240_change_default_build_timeout.rb
new file mode 100644
index 00000000000..72341699b21
--- /dev/null
+++ b/db/ci/migrate/20150602000240_change_default_build_timeout.rb
@@ -0,0 +1,9 @@
+class ChangeDefaultBuildTimeout < ActiveRecord::Migration
+ def up
+ change_column :projects, :timeout, :integer, default: 3600, null: false
+ end
+
+ def down
+ change_column :projects, :timeout, :integer, default: 1800, null: false
+ end
+end