Uh oh!
There was an error while loading. Please reload this page.
#20 Changed CodeChallengeEvent to Event - #39
Conversation
MathyouMB
left a comment
There was a problem hiding this comment.
Your model changes look great! 😊
One thing you will need to add though before I can merge this is a Django migration that renames the table on the database. I found this great stack overflow post that describes how you can generate such a migration: https://stackoverflow.com/questions/25091130/django-migration-strategy-for-renaming-a-model-and-relationship-fields. After you add the renaming migration we can merge! 🚢
Let me know if you have any questions.
| operations = [ | ||
| migrations.CreateModel( | ||
| name="CodeChallengeEvent", |
There was a problem hiding this comment.
Please don't modify existing migrations, instead please add a new migration that renames the table. We need to do this because we already have a table and data inside this table in production.
| blank=True, | ||
| null=True, | ||
| on_delete=django.db.models.deletion.CASCADE, | ||
| to="codechallenges.codechallengeevent", |
No description provided.