diff --git a/guides/Getting Started.md b/guides/Getting Started.md index 4725204..eed6427 100644 --- a/guides/Getting Started.md +++ b/guides/Getting Started.md @@ -53,8 +53,10 @@ Open the generated migration and call the `up` and `down` functions on `ErrorTra defmodule MyApp.Repo.Migrations.AddErrorTracker do use Ecto.Migration - def up, do: ErrorTracker.Migration.up() - def down, do: ErrorTracker.Migration.down() + def up, do: ErrorTracker.Migration.up(version: 2) + + # We specify `version: 1` in `down`, to ensure we remove all migrations. + def down, do: ErrorTracker.Migration.down(version: 1) end ```