include the helper

This commit is contained in:
Lin Jen-Shin 2016-06-06 18:48:18 +08:00
parent 2ea0148c55
commit 894d22f49a
1 changed files with 3 additions and 3 deletions

View File

@ -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)