From 894d22f49a24377aad7e693d0343397bc349e412 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin <godfat@godfat.org> Date: Mon, 6 Jun 2016 18:48:18 +0800 Subject: [PATCH] include the helper --- db/migrate/20160509091049_add_locked_to_ci_runner.rb | 6 +++--- 1 file 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) -- GitLab