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:
authorLin Jen-Shin <godfat@godfat.org>2016-06-06 13:48:18 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-06-09 11:00:24 +0300
commit894d22f49a24377aad7e693d0343397bc349e412 (patch)
treed4822f9a607b79d6c53b60af29449149d4f0d5a9 /db/migrate/20160509091049_add_locked_to_ci_runner.rb
parent2ea0148c55fbefee1137c254a94b37c05dca41cf (diff)
include the helper
Diffstat (limited to 'db/migrate/20160509091049_add_locked_to_ci_runner.rb')
-rw-r--r--db/migrate/20160509091049_add_locked_to_ci_runner.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/db/migrate/20160509091049_add_locked_to_ci_runner.rb b/db/migrate/20160509091049_add_locked_to_ci_runner.rb
index 43376304bd9..3fbaef3b7f0 100644
--- a/db/migrate/20160509091049_add_locked_to_ci_runner.rb
+++ b/db/migrate/20160509091049_add_locked_to_ci_runner.rb
@@ -1,7 +1,7 @@
class AddLockedToCiRunner < ActiveRecord::Migration
- ##
- # Downtime expected due to exclusive lock when setting default value.
- #
+ include Gitlab::Database::MigrationHelpers
+ disable_ddl_transaction!
+
def up
add_column_with_default(:ci_runners, :locked, :boolean,
default: false, allow_null: false)