ex_machina v1.0.0 Release NotesRelease Date: 2016-06-24 // over 3 years ago
⬆️ A lot has changed but we tried to make upgrading as simple as possible.
⬆️ To upgrade: In
mix.exschange the version to
"~> 1.0"and run
mix ⚡️ deps.get. Once you've updated, run
mix testand ExMachina will raise errors that show you what needs to change to work with 1.0.0.
- ➕ Add
Sequence.next/1for quickly creating sequences. Example:
- Raise if passing invalid keys to structs (#99)
- If using ExMachina with Ecto, use
- Instead of defining a custom
save_record, you can now implement an
ExMachina.Strategy. See the documentation on hex.pm for more info (#102)
- 👀 Define factory as
factory(:user)(#110). See PR and related issue for details on why this was changed.
params_forno longer returns the primary key (#123)
- ➕ Add