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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-09 12:18:47 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-06-09 11:00:24 +0300
commit860760120843ea5ad003cc2f52b28cf0fc7c647b (patch)
tree2cc0ec3f53578b3cb683c264825dc55bb9af6a4b /db/migrate/20160509091049_add_locked_to_ci_runner.rb
parent13fd88faa3a334e0a9d221c578abde686d45e368 (diff)
Add config field to runner to lock it on project
Diffstat (limited to 'db/migrate/20160509091049_add_locked_to_ci_runner.rb')
-rw-r--r--db/migrate/20160509091049_add_locked_to_ci_runner.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20160509091049_add_locked_to_ci_runner.rb b/db/migrate/20160509091049_add_locked_to_ci_runner.rb
new file mode 100644
index 00000000000..6294fa9d86b
--- /dev/null
+++ b/db/migrate/20160509091049_add_locked_to_ci_runner.rb
@@ -0,0 +1,8 @@
+class AddLockedToCiRunner < ActiveRecord::Migration
+ ##
+ # Downtime expected due to exclusive lock when setting default value.
+ #
+ def change
+ add_column :ci_runners, :locked, :boolean, default: false, null: false
+ end
+end