From aa79c04d7b1ccfbd1273019fa455211fdd30ecc3 Mon Sep 17 00:00:00 2001 From: Maxime Orefice <morefice@gitlab.com> Date: Thu, 1 Jun 2023 11:48:10 +0200 Subject: [PATCH] Fix doc for swap_primary_key --- doc/development/migration_style_guide.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/development/migration_style_guide.md b/doc/development/migration_style_guide.md index 513659d0f6889..33f51c20446f8 100644 --- a/doc/development/migration_style_guide.md +++ b/doc/development/migration_style_guide.md @@ -973,6 +973,8 @@ Under the hood, it works like this: ```ruby class SwapPrimaryKey < Gitlab::Database::Migration[2.1] + disable_ddl_transaction! + TABLE_NAME = :table_name PRIMARY_KEY = :table_name_pkey OLD_INDEX_NAME = :old_index_name -- GitLab