summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-10-04 20:27:25 +0900
committerShinya Maeda <shinya@gitlab.com>2017-10-04 20:27:25 +0900
commit8cff79bc1dd8802843f977177b433838f0ba76b0 (patch)
tree8e3c11a855fbbe1800e9cd42521d91e49072e23e /app/models
parent982c2b83ed14f72c288cfd6c719e9729a0d8818e (diff)
downloadgitlab-ce-8cff79bc1dd8802843f977177b433838f0ba76b0.tar.gz
Fix static analysys. Fix import config.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/gcp/cluster.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/gcp/cluster.rb b/app/models/gcp/cluster.rb
index 8e7807a3a55..18e16135a57 100644
--- a/app/models/gcp/cluster.rb
+++ b/app/models/gcp/cluster.rb
@@ -47,7 +47,9 @@ module Gcp
}
validates :gcp_cluster_zone, presence: true
- validates :gcp_cluster_size, presence: true,
+
+ validates :gcp_cluster_size,
+ presence: true,
numericality: {
only_integer: true,
greater_than: 0