{"action":"created","issue":{"url":"https://api.github.com/repos/VentureCraft/revisionable/issues/206","repository_url":"https://api.github.com/repos/VentureCraft/revisionable","labels_url":"https://api.github.com/repos/VentureCraft/revisionable/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/VentureCraft/revisionable/issues/206/comments","events_url":"https://api.github.com/repos/VentureCraft/revisionable/issues/206/events","html_url":"https://github.com/VentureCraft/revisionable/issues/206","id":134123824,"number":206,"title":"Strange unique key error","user":{"login":"ryanwinchester","id":2897340,"avatar_url":"https://avatars.githubusercontent.com/u/2897340?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanwinchester","html_url":"https://github.com/ryanwinchester","followers_url":"https://api.github.com/users/ryanwinchester/followers","following_url":"https://api.github.com/users/ryanwinchester/following{/other_user}","gists_url":"https://api.github.com/users/ryanwinchester/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanwinchester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanwinchester/subscriptions","organizations_url":"https://api.github.com/users/ryanwinchester/orgs","repos_url":"https://api.github.com/users/ryanwinchester/repos","events_url":"https://api.github.com/users/ryanwinchester/events{/privacy}","received_events_url":"https://api.github.com/users/ryanwinchester/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-16T23:14:29Z","updated_at":"2016-02-16T23:24:44Z","closed_at":"2016-02-16T23:24:44Z","body":"I've been getting this error type lately but I don't understand why.\r\n\r\n```\r\n\"SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint \"revisions_pkey\"\r\n\r\nDETAIL: Key (id)=(4) already exists. (\r\n    SQL: insert into \"revisions\" (\r\n        \"created_at\", \"key\", \"new_value\", \"old_value\", \"revisionable_id\", \"revisionable_type\", \"updated_at\", \"user_id\"\r\n    ) values (\r\n        2016-02-16 23:11:19, is_published, 0, 1, 33, Flashtag\\Data\\Post, 2016-02-16 23:11:19, 2\r\n    )\r\n)\"\r\n```"},"comment":{"url":"https://api.github.com/repos/VentureCraft/revisionable/issues/comments/184918079","html_url":"https://github.com/VentureCraft/revisionable/issues/206#issuecomment-184918079","issue_url":"https://api.github.com/repos/VentureCraft/revisionable/issues/206","id":184918079,"user":{"login":"ryanwinchester","id":2897340,"avatar_url":"https://avatars.githubusercontent.com/u/2897340?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanwinchester","html_url":"https://github.com/ryanwinchester","followers_url":"https://api.github.com/users/ryanwinchester/followers","following_url":"https://api.github.com/users/ryanwinchester/following{/other_user}","gists_url":"https://api.github.com/users/ryanwinchester/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanwinchester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanwinchester/subscriptions","organizations_url":"https://api.github.com/users/ryanwinchester/orgs","repos_url":"https://api.github.com/users/ryanwinchester/repos","events_url":"https://api.github.com/users/ryanwinchester/events{/privacy}","received_events_url":"https://api.github.com/users/ryanwinchester/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T23:24:44Z","updated_at":"2016-02-16T23:24:44Z","body":"Ah well, I truncated the revisions table and it works fine now."}}