Skip to content

Commit

Permalink
Add a tip about where to put the migration runner (#557)
Browse files Browse the repository at this point in the history
I've encountered the problem solved by this commit while I was learning Distillery through this tutorial - I think that it'd be nice to have the place for `App.ReleaseTasks` mentioned in the docs, especially for beginners.
  • Loading branch information
macbem authored and bitwalker committed Oct 9, 2018
1 parent 90be292 commit d7d9fce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guides/running_migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ defmodule MyApp.ReleaseTasks do
end
end
```
!!! warning
Remember to put this file under `lib`, as it must be compiled with the rest of your application, otherwise the code will not be available in the release, and the migrate command will fail.

## Custom command

Expand Down

0 comments on commit d7d9fce

Please sign in to comment.