Question

I want to run migration on my server for ruby on rails project but I am getting this kind of error with postgres-

PGError: ERROR: relation "last_message_read" already exists : CREATE TABLE "last_message_read" ("id" serial primary key, "message" character varying(255), "company_id" integer)

So, I want to continue with my migration but it is not happening - I want to ignore those migration which are failing and continue with the rest....

Please help!!! And thanks in advance...

Was it helpful?

Solution

Something's wrong with your migrations. Just reset your db (rake db:reset).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top