From c1ba62135a31abc665e84ce729dc32602c9929f7 Mon Sep 17 00:00:00 2001 From: leohner <17093330+leohner@users.noreply.github.com> Date: Tue, 6 Dec 2022 16:13:00 -0500 Subject: [PATCH] Fixed to defined -> to define and removed unnecessary tab (#462) --- lib/ecto/migration.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ecto/migration.ex b/lib/ecto/migration.ex index 8b588798..f721e6b4 100644 --- a/lib/ecto/migration.ex +++ b/lib/ecto/migration.ex @@ -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: @@ -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