Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2018-03-06 11:26:50 +0300
committerKamil TrzciƄski <ayufan@ayufan.eu>2018-03-06 11:26:50 +0300
commit7237ed59ac90148945efebf9624949c80c1298a4 (patch)
treef90e1dc83cb22117aa50bef46664c17d69edfa5c /db/migrate/20180305144721_add_privileged_to_runner.rb
parent2e87923dcb1cf7984690f5b5fdfc61bddfba923e (diff)
Resolve "Enable privileged mode for Runner installed on Kubernetes"
Diffstat (limited to 'db/migrate/20180305144721_add_privileged_to_runner.rb')
-rw-r--r--db/migrate/20180305144721_add_privileged_to_runner.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20180305144721_add_privileged_to_runner.rb b/db/migrate/20180305144721_add_privileged_to_runner.rb
new file mode 100644
index 00000000000..32e73dba8d5
--- /dev/null
+++ b/db/migrate/20180305144721_add_privileged_to_runner.rb
@@ -0,0 +1,18 @@
+# See http://doc.gitlab.com/ce/development/migration_style_guide.html
+# for more information on how to write migrations for GitLab.
+
+class AddPrivilegedToRunner < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ add_column_with_default :clusters_applications_runners, :privileged, :boolean, default: true, allow_null: false
+ end
+
+ def down
+ remove_column :clusters_applications_runners, :privileged
+ end
+end