summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2019-01-03 14:41:53 +0100
committerDylan Griffith <dyl.griffith@gmail.com>2019-01-04 11:49:13 +0100
commit9275e1dfbfbb5cdeeb72ca429a5323c1d471af39 (patch)
tree5f761d6fc3f03ed29af8e35f3da81fb82f126129 /db
parent147f740730b63dbdd4c457bb3a783510d225d73b (diff)
downloadgitlab-ce-9275e1dfbfbb5cdeeb72ca429a5323c1d471af39.tar.gz
Make RBAC enabled default for new clusters
Many changes were also made to tests that expected this to default to false.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20190103140724_make_legacy_false_default.rb9
-rw-r--r--db/schema.rb4
2 files changed, 11 insertions, 2 deletions
diff --git a/db/migrate/20190103140724_make_legacy_false_default.rb b/db/migrate/20190103140724_make_legacy_false_default.rb
new file mode 100644
index 00000000000..154035f76cd
--- /dev/null
+++ b/db/migrate/20190103140724_make_legacy_false_default.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class MakeLegacyFalseDefault < ActiveRecord::Migration[5.0]
+ DOWNTIME = false
+
+ def change
+ change_column_default :cluster_providers_gcp, :legacy_abac, from: true, to: false
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 0af185409a9..8dc1260d177 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20181219145520) do
+ActiveRecord::Schema.define(version: 20190103140724) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -630,7 +630,7 @@ ActiveRecord::Schema.define(version: 20181219145520) do
t.string "endpoint"
t.text "encrypted_access_token"
t.string "encrypted_access_token_iv"
- t.boolean "legacy_abac", default: true, null: false
+ t.boolean "legacy_abac", default: false, null: false
t.index ["cluster_id"], name: "index_cluster_providers_gcp_on_cluster_id", unique: true, using: :btree
end