From f437eb69f07541b9ea20fce7b2543e0e5c80da9b Mon Sep 17 00:00:00 2001 From: Nathan Long Date: Mon, 19 Aug 2024 12:51:13 -0400 Subject: [PATCH 1/2] Link to the explanation section --- lib/ecto/migration.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ecto/migration.ex b/lib/ecto/migration.ex index 7ddc64f6..ab9b35a2 100644 --- a/lib/ecto/migration.ex +++ b/lib/ecto/migration.ex @@ -1549,7 +1549,10 @@ defmodule Ecto.Migration do struct!(%Constraint{table: table, name: name}, opts) end - @doc "Executes queue migration commands." + @doc """ + Execute all changes specified by the migration so far. + See [Executing and flushing](#module-executing-and-flushing). + """ defmacro flush do quote do if direction() == :down and not function_exported?(__MODULE__, :down, 0) do From e5df07c7b581cef070c1d8ddd2b95812c73560d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 19 Aug 2024 20:52:09 +0200 Subject: [PATCH 2/2] Update lib/ecto/migration.ex --- lib/ecto/migration.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ecto/migration.ex b/lib/ecto/migration.ex index ab9b35a2..c1f28e1c 100644 --- a/lib/ecto/migration.ex +++ b/lib/ecto/migration.ex @@ -1551,6 +1551,7 @@ defmodule Ecto.Migration do @doc """ Execute all changes specified by the migration so far. + See [Executing and flushing](#module-executing-and-flushing). """ defmacro flush do