Open danleecreates opened 8 years ago
Could you walk me through how to reproduce that error? because when I try creating multiple posts with the same title, the app generates a slug with the title and some random string concatenated at the end(which is what we want)
Hi Ken,
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_posts_on_slug" DETAIL: Key (slug)=(hello-world) already exists. : UPDATE "posts" SET "published_at" = $1, "slug" = $2, "lead" = $3, "updated_at" = $4 WHERE "posts"."id" = $5
Are you working off of master branch?
Yes I was. If I write a new post it doesn't have the same issue - it is only older drafts that have no content.
@kenny-hibino : Let me know If you can reproduce the error which mention by @nearkingdom .
When trying to publish a story with a slug that is the same as a story that is already published you get an error. Discovered by accident.