Skip to content

Documentation: Correct inaccurate phrase related to disable_ddl_transaction mode

Nikolay Samokhvalov requested to merge improve_migrations_docs into master

disable_ddl_transaction! does not disable transactions, it just removes single start transaction / commit pair, so any SQL statement in migration becomes a separate transaction.

RoR's disable_ddl_transaction is not a perfect term, because it leaves a room for two meanings:

  • disable transactions at all (this is what the old phrase stated explicitly and what is actually impossible in Postgres), or
  • disable single-transaction mode for DDL (this is the correct meaning).

The old phrase could lead to misunderstanding, this MR fixes it.

(The same ph

Edited by Nikolay Samokhvalov

Merge request reports

Loading