diff options
author | Tiger <twatson@gitlab.com> | 2019-08-23 16:05:55 +1000 |
---|---|---|
committer | Tiger <twatson@gitlab.com> | 2019-08-30 14:15:01 +1000 |
commit | 69bfe12a7a5e3cecf15c1cd632f4434aa0fbe8eb (patch) | |
tree | c47ba85e285afeedcd798a7d211a0e3e75bfc122 /db | |
parent | cc3c1a66dd3de201c1621511b9da250ee4125f52 (diff) | |
download | gitlab-ce-69bfe12a7a5e3cecf15c1cd632f4434aa0fbe8eb.tar.gz |
Default clusters namespace_per_environment to true
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190823055948_change_clusters_namespace_per_environment_default.rb | 12 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 13 insertions, 1 deletions
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 |