PostgreSQL Error: relation "User" does not exist

I have error in this app

chapter many to many relationships … adding foregin keys
when running the app give me run error
hread 1: Fatal error: Error raised at top level: PostgreSQL Error: relation "User" does not exist

xcode tell

[ INFO ] Migrating 'psql' database (/Users/Mercury/Desktop/vapor/tilm/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/MigrationConfig.swift:69)
[ INFO ] Preparing migration 'Acronym' (/Users/Mercury/Desktop/vapor/tilm/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/Migrations.swift:111)

You need to change the order of your migrations and put the User first. Currently it tries to run the acronym migration which refers to a User but it doesn’t know about that yet

6 Likes

You are really genius
Really i hope that i met u