summaryrefslogtreecommitdiff
path: root/db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-04 14:34:11 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-19 22:01:53 +0200
commitd0032935a1d720c8e3cfd2597667c62a0c4015a1 (patch)
treeea4f2d7382fde7772faddba46e019f782d221fe4 /db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb
parente4a1af83532006f2b11a323cdabfcf8f042fa3c7 (diff)
downloadgitlab-ce-d0032935a1d720c8e3cfd2597667c62a0c4015a1.tar.gz
Add runner db field for ability to run untagged jobs
Diffstat (limited to 'db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb')
-rw-r--r--db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb b/db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb
new file mode 100644
index 00000000000..38fee17f904
--- /dev/null
+++ b/db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb
@@ -0,0 +1,11 @@
+class AddRunUntaggedToCiRunner < ActiveRecord::Migration
+ ##
+ # Downtime expected!
+ #
+ # This migration will cause downtime due to exclusive lock
+ # caused by the default value.
+ #
+ def change
+ add_column :ci_runners, :run_untagged, :boolean, default: true
+ end
+end