Build failed (maybe some with migrating)

Hello. in local it’s working but here some mistake. is it possible to help me ?

Nov 21 11:38:00 PM (See full trace by running task with --trace)
Nov 21 11:38:00 PM I, [2022-11-21T20:38:00.061036 #169] INFO – : Migrating to CreateMasters (20221119195129)
Nov 21 11:38:00 PM == 20221119195129 CreateMasters: migrating ====================================
Nov 21 11:38:00 PM – create_table(:masters)
Nov 21 11:38:00 PM ==> Build failed :disappointed:
Nov 21 11:38:00 PM ==> Generating container image from build. This may take a few minutes…

srv-cdtt3tpa6gdu24as73eg/deploys/dep-cdtu304gqg42p5211ktg

Hi there,

Thanks for reaching out, this isn’t a Render issue, but your database/migrations appear to be in an incorrect state.

The error in your logs is:

PG::DuplicateTable: ERROR: relation "masters" already exists

You’ll need to resolve this issue, which could be by adding the migration timestamp to schema_migrations or by deleting that table before running that migration. However, make the appropriate checks that you’re not deleting needed data.

Alan

1 Like

Thanks a lot
I will try

mmm sorry my mistake, I already have this table in render db.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.