Skip to content

Instantly share code, notes, and snippets.

@t7y
Created March 19, 2011 00:04
Show Gist options
  • Save t7y/877052 to your computer and use it in GitHub Desktop.
Save t7y/877052 to your computer and use it in GitHub Desktop.
ActiveRecord::RecordNotUnique Error
PGError: ERROR: duplicate key value violates unique constraint "unq_articles" DETAIL: Key (suite101_article_id)=(114849) already exists. : INSERT INTO "articles" ("title", "created_at", "writer_id", "updated_at", "permalink", "suite101_article_id") VALUES ('Earthquake%20Preparedness%20for%20Children', '2011-03-18 21:33:40.058928', 667582, '2011-03-18 21:33:40.058928', 'http://www.suite101.com/content/earthquake-preparedness-for-children-a114849', 114849) RETURNING "id"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment