summaryrefslogtreecommitdiff
path: root/db/migrate
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/migrate
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/migrate')
-rw-r--r--db/migrate/20190103140724_make_legacy_false_default.rb9
1 files changed, 9 insertions, 0 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