@@ -1285,8 +1285,8 @@ defmodule Ecto.Migration do
12851285 >
12861286 > We have considered changing the column type even when it is not needed
12871287 > could lead to undesirable locks, that's why, at least in the PostgreSQL
1288- > adapter, if you provide the option `:from`, and the type matches, we
1289- > will avoid changing the type .
1288+ > adapter, if you provide the option `:from`, and the column type matches,
1289+ > we will skip updating it .
12901290 >
12911291 > Examples
12921292 >
@@ -1297,7 +1297,7 @@ defmodule Ecto.Migration do
12971297 >
12981298 > # adding a new foreign key constraint
12991299 > alter table("posts") do
1300- > modify :author_id, references(:authors, type: :id), from: :id
1300+ > modify :author_id, references(:authors, type: :id, validate: false ), from: :id
13011301 > end
13021302 >
13031303 > # Modify the :on_delete option of an existing foreign key
@@ -1306,12 +1306,10 @@ defmodule Ecto.Migration do
13061306 > from: references(:posts, on_delete: :nothing)
13071307 > end
13081308 >
1309- >
1310- > The previous syntax will offer two benefits, at least in the PostgreSQL adapter,
1311- > the migration is reversible and if the column type remains the same, the column
1309+ > The previous syntax will offer two benefits, apart from being a reversible migration,
1310+ > at least in the PostgreSQL adapter, if the column type remains the same, the column
13121311 > type update will be skipped.
13131312
1314-
13151313 ## Examples
13161314
13171315 alter table("posts") do
0 commit comments