Closed jdesilvio closed 6 years ago
ndarilek commented on Mar 4, 2017
One point that was missed, which I noticed when generating a new 1.3 application:
I didn't get that exactly right, but that's vaguely what I did. It isn't a breaking change, but if the goal is to make upgraded apps identical to newly-generated ones, that change should probably be documented.
Optional change:
When migrating an existing app, you may want to rename MyApp.ModelCase
to MyApp.DataCase
, mv test/support/model_case.ex
to test/support/data_case.ex
, and update module references in existing model tests.
The new generators for creating a context and schema (formerly known as "model") will generate schema test cases with use MyApp.DataCase
instead of MyApp.ModelCase
, so you'll have to handle the missing module name somehow.
https://www.phoenixdiff.org/ for changes in generated apps
Created new issues for dealing with bigger upgrades that are not causing any immediate problems:
Upgrade guide: https://gist.github.com/chrismccord/71ab10d433c98b714b75c886eff17357