diff options
-rw-r--r-- | db/migrate/20141006143943_move_slack_service_to_webhook.rb | 3 |
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 } |