summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-12-20 09:06:11 +0100
committerJames Lopez <james@jameslopez.es>2016-12-20 11:20:04 +0100
commit7819e0fa78417f114ae4ec654473e802f0bb95f9 (patch)
treeab1d137446ef17e0209a58df2fdb8bcd8bf287d9
parent51b095f42b80186639dd09a224dac9694638ef57 (diff)
downloadgitlab-ce-revert-bdb5e677.tar.gz
fix migration downtime checkrevert-bdb5e677
-rw-r--r--db/migrate/20141006143943_move_slack_service_to_webhook.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/db/migrate/20141006143943_move_slack_service_to_webhook.rb b/db/migrate/20141006143943_move_slack_service_to_webhook.rb
index 8cb120f7007..f373c664e16 100644
--- a/db/migrate/20141006143943_move_slack_service_to_webhook.rb
+++ b/db/migrate/20141006143943_move_slack_service_to_webhook.rb
@@ -1,5 +1,8 @@
# rubocop:disable all
class MoveSlackServiceToWebhook < ActiveRecord::Migration
+ DOWNTIME = true
+ DOWNTIME_REASON = 'Move old fields "token" and "subdomain" to one single field "webhook"'
+
def change
SlackService.all.each do |slack_service|
if ["token", "subdomain"].all? { |property| slack_service.properties.key? property }