```ERROR: There is a relation ambiguity during the...
# orm-help
b
Copy code
ERROR: There is a relation ambiguity during the migration. Please first name the old relation 
on your schema. The ambiguity is on a relation between Trip and User. Please name relations or change the schema in steps.
r
Hey bob 👋 Are you using Prisma 1.34? If so, then the schema below should work fine on deploy:
Copy code
type User {
  id: ID! @id
  name: String
  email: String @unique
  gender: String
  trips: [Trip] @relation(name: "TravelerRelation")
  createdTrips: [Trip] @relation(name: "TripOwner", onDelete: CASCADE)
  createdAt: DateTime @createdAt
}

type Trip {
  id: ID! @id
  invitationLink: String @unique
  name: String!
  location: String
  arivalDay: DateTime
  departureDay: DateTime
  user: User! @relation(name: "TripOwner")
  travelers: [User!] @relation(name: "TravelerRelation")
  createdAt: DateTime @createdAt
}
b
I thank thee