elixir-error-tracker / error-tracker

🐛 An Elixir-based built-in error reporting and tracking solution
https://hex.pm/packages/error_tracker
Apache License 2.0
331 stars 14 forks source link

Cannot get migration working #57

Closed grahac closed 4 weeks ago

grahac commented 4 weeks ago

Ignore! User error.

crbelaus commented 4 weeks ago

You are defining functions within functions, the def change do has to be removed. It should be like this:

defmodule MyApp.Repo.Migrations.AddErrorTracker do
  use Ecto.Migration

  def up, do: ErrorTracker.Migration.up()
  def down, do: ErrorTracker.Migration.down()
end
grahac commented 4 weeks ago

Yeah. Just saw that! I feel a bit foolish here haha

crbelaus commented 4 weeks ago

Yeah. Just saw that! I feel a bit foolish here haha

No worries!

grahac commented 4 weeks ago

I need more coffee this morning ;)

grahac commented 4 weeks ago

Thanks for the super fast reply though!