Skip to content

[Bug]: SEED CRM Failed #78

@NicolasWoitchik

Description

@NicolasWoitchik

Description

Estou tentando executar pela primeira vez o projeto e após atualizar todos os submodules encontrei uma barreira que estou com dificuldades em passar.

Rodando o comando make setup, passa em todas as etapas porém ao chegar no seed-crm ele apresenta o erro abaixo:
Image

Ja rodei o comando make clean pra deletar tudo e executar novamente porém o mesmo erro acontece.

Affected Service

CRM Service (evo-ai-crm-community)

Steps to Reproduce

make setup

Expected Behavior

Esperava rodar corretamente o comando

Actual Behavior

Está informando que o algumas colunas e relações já existem

Environment

  • OS: ubuntu
  • Docker version: 29.4.1
  • Browser: n/a

Screenshots

Image

Relevant Logs

Bundle complete! 127 Gemfile dependencies, 360 gems now installed.
Bundled gems are installed into `/gems`
2 installed gems you directly depend on are looking for funding.
  Run `bundle fund` for details
+ BUNDLE='bundle check'
+ bundle check
Found no changes, using resolution from the lockfile
The Gemfile's dependencies are satisfied
+ exec sh -c 'bundle exec rails db:prepare && bundle exec rails db:seed'
== 20251114150000 AddSentimentAnalysisFieldsToFacebookCommentModerations: migrating
-- add_column(:facebook_comment_moderations, :sentiment_offensive, :boolean, {default: false, null: false})
bin/rails aborted!
StandardError: An error has occurred, this and all later migrations canceled: (StandardError)

PG::DuplicateColumn: ERROR:  column "sentiment_offensive" of relation "facebook_comment_moderations" already exists
/app/db/migrate/20251114150000_add_sentiment_analysis_fields_to_facebook_comment_moderations.rb:3:in 'AddSentimentAnalysisFieldsToFacebookCommentModerations#change'

Caused by:
ActiveRecord::StatementInvalid: PG::DuplicateColumn: ERROR:  column "sentiment_offensive" of relation "facebook_comment_moderations" already exists (ActiveRecord::StatementInvalid)
/app/db/migrate/20251114150000_add_sentiment_analysis_fields_to_facebook_comment_moderations.rb:3:in 'AddSentimentAnalysisFieldsToFacebookCommentModerations#change'

Caused by:
PG::DuplicateColumn: ERROR:  column "sentiment_offensive" of relation "facebook_comment_moderations" already exists (PG::DuplicateColumn)
/app/db/migrate/20251114150000_add_sentiment_analysis_fields_to_facebook_comment_moderations.rb:3:in 'AddSentimentAnalysisFieldsToFacebookCommentModerations#change'
Tasks: TOP => db:prepare
(See full trace by running task with --trace)

make: *** [Makefile:108: seed-crm] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions