summaryrefslogtreecommitdiff
path: root/db/migrate/20161227192806_rename_slack_and_mattermost_notification_services.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20161227192806_rename_slack_and_mattermost_notification_services.rb')
-rw-r--r--db/migrate/20161227192806_rename_slack_and_mattermost_notification_services.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/db/migrate/20161227192806_rename_slack_and_mattermost_notification_services.rb b/db/migrate/20161227192806_rename_slack_and_mattermost_notification_services.rb
deleted file mode 100644
index df5714278f2..00000000000
--- a/db/migrate/20161227192806_rename_slack_and_mattermost_notification_services.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-# rubocop:disable Migration/UpdateColumnInBatches
-class RenameSlackAndMattermostNotificationServices < ActiveRecord::Migration[4.2]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- update_column_in_batches(:services, :type, 'SlackService') do |table, query|
- query.where(table[:type].eq('SlackNotificationService'))
- end
-
- update_column_in_batches(:services, :type, 'MattermostService') do |table, query|
- query.where(table[:type].eq('MattermostNotificationService'))
- end
- end
-
- def down
- update_column_in_batches(:services, :type, 'SlackNotificationService') do |table, query|
- query.where(table[:type].eq('SlackService'))
- end
-
- update_column_in_batches(:services, :type, 'MattermostNotificationService') do |table, query|
- query.where(table[:type].eq('MattermostService'))
- end
- end
-end