From 7819e0fa78417f114ae4ec654473e802f0bb95f9 Mon Sep 17 00:00:00 2001 From: James Lopez Date: Tue, 20 Dec 2016 09:06:11 +0100 Subject: fix migration downtime check --- db/migrate/20141006143943_move_slack_service_to_webhook.rb | 3 +++ 1 file changed, 3 insertions(+) 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 } -- cgit v1.2.1