{"action":"created","issue":{"url":"https://api.github.com/repos/VentureCraft/revisionable/issues/247","repository_url":"https://api.github.com/repos/VentureCraft/revisionable","labels_url":"https://api.github.com/repos/VentureCraft/revisionable/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/VentureCraft/revisionable/issues/247/comments","events_url":"https://api.github.com/repos/VentureCraft/revisionable/issues/247/events","html_url":"https://github.com/VentureCraft/revisionable/issues/247","id":174758987,"number":247,"title":"Double record inserted in revisions","user":{"login":"mistre83","id":4687004,"avatar_url":"https://avatars.githubusercontent.com/u/4687004?v=3","gravatar_id":"","url":"https://api.github.com/users/mistre83","html_url":"https://github.com/mistre83","followers_url":"https://api.github.com/users/mistre83/followers","following_url":"https://api.github.com/users/mistre83/following{/other_user}","gists_url":"https://api.github.com/users/mistre83/gists{/gist_id}","starred_url":"https://api.github.com/users/mistre83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistre83/subscriptions","organizations_url":"https://api.github.com/users/mistre83/orgs","repos_url":"https://api.github.com/users/mistre83/repos","events_url":"https://api.github.com/users/mistre83/events{/privacy}","received_events_url":"https://api.github.com/users/mistre83/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-02T13:24:33Z","updated_at":"2016-10-02T16:32:04Z","closed_at":"2016-09-05T07:18:57Z","body":"I have create a simple model `Post` and extended `Revisionable` and used `RevisionableTrait`.\r\n\r\n```\r\nclass Post extends Revisionable\r\n{\r\n    use RevisionableTrait;\r\n\r\n    public $table = \"posts\";\r\n    public $primaryKey = \"id\";\r\n\r\n    public $timestamps = true;\r\n    public $fillable = [\r\n        'title'\r\n    ];\r\n\r\n    public static $rules = [\r\n\r\n    ];\r\n}\r\n\r\n```\r\n\r\nWhen i try to update a field, in `revisions` table i found two record, inserted at the same time."},"comment":{"url":"https://api.github.com/repos/VentureCraft/revisionable/issues/comments/250980354","html_url":"https://github.com/VentureCraft/revisionable/issues/247#issuecomment-250980354","issue_url":"https://api.github.com/repos/VentureCraft/revisionable/issues/247","id":250980354,"user":{"login":"morilog","id":4139179,"avatar_url":"https://avatars.githubusercontent.com/u/4139179?v=3","gravatar_id":"","url":"https://api.github.com/users/morilog","html_url":"https://github.com/morilog","followers_url":"https://api.github.com/users/morilog/followers","following_url":"https://api.github.com/users/morilog/following{/other_user}","gists_url":"https://api.github.com/users/morilog/gists{/gist_id}","starred_url":"https://api.github.com/users/morilog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morilog/subscriptions","organizations_url":"https://api.github.com/users/morilog/orgs","repos_url":"https://api.github.com/users/morilog/repos","events_url":"https://api.github.com/users/morilog/events{/privacy}","received_events_url":"https://api.github.com/users/morilog/received_events","type":"User","site_admin":false},"created_at":"2016-10-02T16:32:04Z","updated_at":"2016-10-02T16:32:04Z","body":"I have same problem, I'm using trait, but double records are inserted in database"}}
{"actor":{"display_login":"morilog"}}