diff --git a/db/migrate/20160509091049_add_locked_to_ci_runner.rb b/db/migrate/20160509091049_add_locked_to_ci_runner.rb index 43376304bd95bd0be301eca303936fb60c0a8d54..3fbaef3b7f0ae87d39d78a1e02516da7c77a97ab 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)