column "summary" cannot be cast automatically to type jsonb
Hello!
I'm getting this error when running my migrations, I used to have a text field and now it's a jsonb
How can I resolve this?
This is the migration:
5 Replies
What's the error?
Sorry 🤦
Is there data in the table?
I would just rename the column, run migration, rename back to what you want and run migration again.
Or just edit the SQL migration file and drop the column and recreate it
Do you think this looks ok?
Do I need this?
--> statement-breakpoint
that seems to to be what you need
You don't really need the comment