diff options
Diffstat (limited to 'db/post_migrate/20221129124240_remove_flowdock_integration_records.rb')
-rw-r--r-- | db/post_migrate/20221129124240_remove_flowdock_integration_records.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/db/post_migrate/20221129124240_remove_flowdock_integration_records.rb b/db/post_migrate/20221129124240_remove_flowdock_integration_records.rb deleted file mode 100644 index 6390ed0d53b..00000000000 --- a/db/post_migrate/20221129124240_remove_flowdock_integration_records.rb +++ /dev/null @@ -1,23 +0,0 @@ -# frozen_string_literal: true - -class RemoveFlowdockIntegrationRecords < Gitlab::Database::Migration[2.0] - disable_ddl_transaction! - - restrict_gitlab_migration gitlab_schema: :gitlab_main - - class Integration < MigrationRecord - include EachBatch - - self.table_name = 'integrations' - end - - def up - Integration.each_batch(of: 1000, column: :id) do |relation| - relation.delete_by(type_new: 'Integrations::Flowdock') - end - end - - def down - # no-op - end -end |