Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: poll #622

Merged
merged 4 commits into from
Jun 26, 2024
Merged

feat: poll #622

merged 4 commits into from
Jun 26, 2024

Conversation

rdahis
Copy link
Member

@rdahis rdahis commented Jun 21, 2024

No description provided.

@rdahis rdahis self-assigned this Jun 21, 2024
Copy link
Contributor

@jhony-spocket jhony-spocket left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Faltou criar as migrations com o comando do Django.

Como você adicionou um novo modelo é necessário gerar as migrations com o django. Para isso é só rodar os seguintes commandos:

Esse vai gerar as migrations com base nas alterações dos modelos:

python manage.py makemigrations

Esse var aplicar as migrations no seu banco de dados local.

python manage.py migrate

backend/apps/api/v1/models.py Outdated Show resolved Hide resolved
backend/apps/api/v1/models.py Outdated Show resolved Hide resolved
backend/apps/api/v1/models.py Show resolved Hide resolved
@rdahis
Copy link
Member Author

rdahis commented Jun 25, 2024

@jhony-spocket acho que está faltando só rodar o python manage.py makemigrations. Não consegui rodar local por questão de ambiente. Caso consiga aí pode subir o commit e damos merge.

@jhonylucas74
Copy link
Collaborator

A migration foi criada.

@rdahis rdahis merged commit 6fdefe5 into main Jun 26, 2024
4 checks passed
@rdahis rdahis deleted the create_poll branch June 26, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Concluído
Development

Successfully merging this pull request may close these issues.

3 participants