summaryrefslogtreecommitdiff
path: root/db
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
parente4a1af83532006f2b11a323cdabfcf8f042fa3c7 (diff)
downloadgitlab-ce-d0032935a1d720c8e3cfd2597667c62a0c4015a1.tar.gz
Add runner db field for ability to run untagged jobs
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160504112519_add_run_untagged_to_ci_runner.rb11
-rw-r--r--db/schema.rb1
2 files changed, 12 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
diff --git a/db/schema.rb b/db/schema.rb
index af4f4c609e7..5b9fbe79fa2 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -269,6 +269,7 @@ ActiveRecord::Schema.define(version: 20160509201028) do
t.string "revision"
t.string "platform"
t.string "architecture"
+ t.boolean "run_untagged", default: true
end
add_index "ci_runners", ["description"], name: "index_ci_runners_on_description_trigram", using: :gin, opclasses: {"description"=>"gin_trgm_ops"}