diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2019-08-30 05:40:01 +0000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2019-08-30 05:40:01 +0000 |
commit | 84064567de1322e8e603f9891e61a9864cb1cbe2 (patch) | |
tree | 2e558ea68e3ce9ace4a13b45ded78bf1077fe596 | |
parent | a29127bbc156374d224fb17b9830081cb007dd20 (diff) | |
parent | 69bfe12a7a5e3cecf15c1cd632f4434aa0fbe8eb (diff) | |
download | gitlab-ce-84064567de1322e8e603f9891e61a9864cb1cbe2.tar.gz |
Merge branch '65251-default-clusters-namespace_per_environment-column-to-true' into 'master'
Default clusters namespace_per_environment to true
See merge request gitlab-org/gitlab-ce!32139
3 files changed, 18 insertions, 1 deletions
diff --git a/changelogs/unreleased/65251-default-clusters-namespace_per_environment-column-to-true.yml b/changelogs/unreleased/65251-default-clusters-namespace_per_environment-column-to-true.yml new file mode 100644 index 00000000000..c0bc20b2485 --- /dev/null +++ b/changelogs/unreleased/65251-default-clusters-namespace_per_environment-column-to-true.yml @@ -0,0 +1,5 @@ +--- +title: Default clusters namespace_per_environment column to true +merge_request: 32139 +author: +type: other diff --git a/db/migrate/20190823055948_change_clusters_namespace_per_environment_default.rb b/db/migrate/20190823055948_change_clusters_namespace_per_environment_default.rb new file mode 100644 index 00000000000..919ce807869 --- /dev/null +++ b/db/migrate/20190823055948_change_clusters_namespace_per_environment_default.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index 13572022235..f1dbe5c322c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -935,7 +935,7 @@ ActiveRecord::Schema.define(version: 2019_08_28_083843) do t.integer "cluster_type", limit: 2, default: 3, null: false t.string "domain" 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 ["user_id"], name: "index_clusters_on_user_id" end |