summaryrefslogtreecommitdiff
path: root/db/migrate/20210308190413_change_batched_background_migrations_batch_class_name_default.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20210308190413_change_batched_background_migrations_batch_class_name_default.rb')
-rw-r--r--db/migrate/20210308190413_change_batched_background_migrations_batch_class_name_default.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20210308190413_change_batched_background_migrations_batch_class_name_default.rb b/db/migrate/20210308190413_change_batched_background_migrations_batch_class_name_default.rb
new file mode 100644
index 00000000000..f841c1e9bd5
--- /dev/null
+++ b/db/migrate/20210308190413_change_batched_background_migrations_batch_class_name_default.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+class ChangeBatchedBackgroundMigrationsBatchClassNameDefault < ActiveRecord::Migration[6.0]
+ DOWNTIME = false
+
+ def change
+ change_column_default :batched_background_migrations, :batch_class_name,
+ from: 'Gitlab::Database::BackgroundMigration::PrimaryKeyBatchingStrategy', to: 'PrimaryKeyBatchingStrategy'
+ end
+end