Default clusters namespace_per_environment to true

This commit is contained in:
Tiger 2019-08-23 16:05:55 +10:00
parent cc3c1a66dd
commit 69bfe12a7a
3 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
title: Default clusters namespace_per_environment column to true
merge_request: 32139
author:
type: other

View file

@ -0,0 +1,12 @@
# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class ChangeClustersNamespacePerEnvironmentDefault < ActiveRecord::Migration[5.2]
DOWNTIME = false
def change
change_column_default :clusters, :namespace_per_environment, from: false, to: true
end
end

View file

@ -935,7 +935,7 @@ ActiveRecord::Schema.define(version: 2019_08_28_083843) do
t.integer "cluster_type", limit: 2, default: 3, null: false t.integer "cluster_type", limit: 2, default: 3, null: false
t.string "domain" t.string "domain"
t.boolean "managed", default: true, null: false t.boolean "managed", default: true, null: false
t.boolean "namespace_per_environment", default: false, null: false t.boolean "namespace_per_environment", default: true, null: false
t.index ["enabled"], name: "index_clusters_on_enabled" t.index ["enabled"], name: "index_clusters_on_enabled"
t.index ["user_id"], name: "index_clusters_on_user_id" t.index ["user_id"], name: "index_clusters_on_user_id"
end end