diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-10-04 20:27:25 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-10-04 20:27:25 +0900 |
commit | 8cff79bc1dd8802843f977177b433838f0ba76b0 (patch) | |
tree | 8e3c11a855fbbe1800e9cd42521d91e49072e23e /app/models | |
parent | 982c2b83ed14f72c288cfd6c719e9729a0d8818e (diff) | |
download | gitlab-ce-8cff79bc1dd8802843f977177b433838f0ba76b0.tar.gz |
Fix static analysys. Fix import config.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/gcp/cluster.rb | 4 |
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 |