diff --git a/doc/development/migration_style_guide.md b/doc/development/migration_style_guide.md index 513659d0f6889e20f4a1fb94a2480fbf982553da..33f51c20446f80b9aeeaaca964b5e65f609175cc 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