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:
authorTomasz Maczukin <tomasz@maczukin.pl>2018-04-04 22:31:56 +0300
committerTomasz Maczukin <tomasz@maczukin.pl>2018-04-04 22:31:56 +0300
commita52e3edd1a1869c2656193c95f8f2e8fd3bc8fa2 (patch)
tree4191e0b5149eb277c3236c2dacccfff4e5e39c8c /app/models/project.rb
parent909c277e56e2773bab8368b6fdd3871a4c9c53f3 (diff)
Specify default value for Project#build_timeout
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 8a325f49ecb..cfd00e8a73c 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -326,7 +326,7 @@ class Project < ActiveRecord::Base
enum auto_cancel_pending_pipelines: { disabled: 0, enabled: 1 }
- chronic_duration_attr :build_timeout_human_readable, :build_timeout
+ chronic_duration_attr :build_timeout_human_readable, :build_timeout, default: 3600
validates :build_timeout, allow_nil: true,
numericality: { greater_than_or_equal_to: 600,