diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-06-06 18:48:18 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-06-09 16:00:24 +0800 |
commit | 894d22f49a24377aad7e693d0343397bc349e412 (patch) | |
tree | d4822f9a607b79d6c53b60af29449149d4f0d5a9 /db | |
parent | 2ea0148c55fbefee1137c254a94b37c05dca41cf (diff) | |
download | gitlab-ce-894d22f49a24377aad7e693d0343397bc349e412.tar.gz |
include the helper
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20160509091049_add_locked_to_ci_runner.rb | 6 |
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) |