You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+1; just ran into this and was quite surprised. Coming from Django/Rails, they don't have such strong guardrails for destructive migrations, and it feels a bit overbearing for the generator to assume my changes were erroneous. Not that I don't appreciate the thought! I've seen plenty of migrations gone awry. IMO a sweet spot would be to have the warnings @joshprice suggests and then make it an opt-in configurable behavior to have destructive operations commented out or not.
Is your feature request related to a problem? Please describe.
Destructive actions are commented out in generated migrations, but it's not clear to the user that something in the migration needs review.
Describe the solution you'd like
Ideally you should always review your migrations, but it'd be great to remind people of this with a note to this effect. Eg
Please always manually review the generated migrations for correctness
When there is something for review we should warn the user more emphatically to do so. Eg
Warning: there are migration steps commented out and in need of manual review
The text was updated successfully, but these errors were encountered: