add types to ecto changeset specs

This commit is contained in:
2022-01-31 23:45:00 -05:00
parent 9ca69ae3e4
commit 8f130a7598
13 changed files with 74 additions and 58 deletions

View File

@ -9,7 +9,7 @@ contributing to Cannery (hopefully) as great of an experience as you found it!
inline `do:` blocks for short functions and make your aliases as short as
possible without introducing ambiguity.
- I.e. since there's only one `Changeset` in the app, please alias
`Changeset.t()` instead of using `Ecto.Changeset.t()`
`Changeset.t(Type.t())` instead of using `Ecto.Changeset.t(Long.Type.t())`
- Use pipelines when possible. If a function only calls a single method, a
pipeline isn't strictly necessary but still encouraged for future
modification.