Domanda

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...

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top