Skip to content

Commit

Permalink
Fixed to defined -> to define and removed unnecessary tab (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
leohner authored Dec 6, 2022
1 parent abf0470 commit c1ba621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ecto/migration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ defmodule Ecto.Migration do
Having to write both `up/0` and `down/0` functions for every
migration is tedious and error prone. For this reason, Ecto allows
you to defined a `change/0` callback with all of the code you want
you to define a `change/0` callback with all of the code you want
to execute when migrating and Ecto will automatically figure out
the `down/0` for you. For example, the migration above can be
written as:
Expand Down Expand Up @@ -661,7 +661,7 @@ defmodule Ecto.Migration do
add :name, :string
add :price, :decimal
end
create table("daily_prices", primary_key: false, options: "PARTITION BY RANGE (date)") do
add :name, :string, primary_key: true
add :date, :date, primary_key: true
Expand Down

0 comments on commit c1ba621

Please sign in to comment.