summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-10-01 20:30:32 +0900
committerShinya Maeda <shinya@gitlab.com>2017-10-01 20:30:32 +0900
commit5663b4808df787b1bcbf32ba54eccbb4c7537e25 (patch)
treedb851b0b94ee77d493dc787f67fe63136dab4fef /db
parent2d1a77b8a3567cae61f73196918fe365d4fe9415 (diff)
downloadgitlab-ce-5663b4808df787b1bcbf32ba54eccbb4c7537e25.tar.gz
authorize in controller. validation in model.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170924094327_create_ci_clusters.rb8
-rw-r--r--db/schema.rb8
2 files changed, 8 insertions, 8 deletions
diff --git a/db/migrate/20170924094327_create_ci_clusters.rb b/db/migrate/20170924094327_create_ci_clusters.rb
index 798c8e03b37..bef39b9808d 100644
--- a/db/migrate/20170924094327_create_ci_clusters.rb
+++ b/db/migrate/20170924094327_create_ci_clusters.rb
@@ -27,10 +27,10 @@ class CreateCiClusters < ActiveRecord::Migration
t.string :encrypted_password_iv
# GKE
- t.string :gcp_project_id
- t.string :cluster_zone
- t.string :cluster_name
- t.string :cluster_size
+ t.string :gcp_project_id, null: false
+ t.string :cluster_zone, null: false
+ t.string :cluster_name, null: false
+ t.integer :cluster_size, null: false
t.string :machine_type
t.string :gcp_operation_id
t.string :encrypted_gcp_token
diff --git a/db/schema.rb b/db/schema.rb
index de844583d56..61245f3f666 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -284,10 +284,10 @@ ActiveRecord::Schema.define(version: 20170924094327) do
t.string "encrypted_password"
t.string "encrypted_password_salt"
t.string "encrypted_password_iv"
- t.string "gcp_project_id"
- t.string "cluster_zone"
- t.string "cluster_name"
- t.string "cluster_size"
+ t.string "gcp_project_id", null: false
+ t.string "cluster_zone", null: false
+ t.string "cluster_name", null: false
+ t.integer "cluster_size", null: false
t.string "machine_type"
t.string "gcp_operation_id"
t.string "encrypted_gcp_token"