{"action":"created","issue":{"url":"https://api.github.com/repos/rubysherpas/paranoia/issues/311","repository_url":"https://api.github.com/repos/rubysherpas/paranoia","labels_url":"https://api.github.com/repos/rubysherpas/paranoia/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/rubysherpas/paranoia/issues/311/comments","events_url":"https://api.github.com/repos/rubysherpas/paranoia/issues/311/events","html_url":"https://github.com/rubysherpas/paranoia/pull/311","id":135270960,"number":311,"title":"Touch record on paranoia-destroy. Fixes #296","user":{"login":"rbr","id":14243026,"avatar_url":"https://avatars.githubusercontent.com/u/14243026?v=3","gravatar_id":"","url":"https://api.github.com/users/rbr","html_url":"https://github.com/rbr","followers_url":"https://api.github.com/users/rbr/followers","following_url":"https://api.github.com/users/rbr/following{/other_user}","gists_url":"https://api.github.com/users/rbr/gists{/gist_id}","starred_url":"https://api.github.com/users/rbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbr/subscriptions","organizations_url":"https://api.github.com/users/rbr/orgs","repos_url":"https://api.github.com/users/rbr/repos","events_url":"https://api.github.com/users/rbr/events{/privacy}","received_events_url":"https://api.github.com/users/rbr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-21T22:45:32Z","updated_at":"2016-04-11T19:34:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rubysherpas/paranoia/pulls/311","html_url":"https://github.com/rubysherpas/paranoia/pull/311","diff_url":"https://github.com/rubysherpas/paranoia/pull/311.diff","patch_url":"https://github.com/rubysherpas/paranoia/pull/311.patch"},"body":"Touch record on destroy by leveraging the paranoia_destroy_attributes.\r\nApplied the same to the restore-method as this eliminates the extra query.\r\n\r\nAs pointed out by @ccleung in #296, touch on destroy was broken in #245 / b2b8d19 (verified by running the included test against 2.1.3 and 2.1.4). Since update_columns is used now (reasons are pointed out in that commit), update-timestamps were no longer set by ActiveRecord.\r\n"},"comment":{"url":"https://api.github.com/repos/rubysherpas/paranoia/issues/comments/208519015","html_url":"https://github.com/rubysherpas/paranoia/pull/311#issuecomment-208519015","issue_url":"https://api.github.com/repos/rubysherpas/paranoia/issues/311","id":208519015,"user":{"login":"pzgz","id":529486,"avatar_url":"https://avatars.githubusercontent.com/u/529486?v=3","gravatar_id":"","url":"https://api.github.com/users/pzgz","html_url":"https://github.com/pzgz","followers_url":"https://api.github.com/users/pzgz/followers","following_url":"https://api.github.com/users/pzgz/following{/other_user}","gists_url":"https://api.github.com/users/pzgz/gists{/gist_id}","starred_url":"https://api.github.com/users/pzgz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pzgz/subscriptions","organizations_url":"https://api.github.com/users/pzgz/orgs","repos_url":"https://api.github.com/users/pzgz/repos","events_url":"https://api.github.com/users/pzgz/events{/privacy}","received_events_url":"https://api.github.com/users/pzgz/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T19:34:10Z","updated_at":"2016-04-11T19:34:10Z","body":"+1 for this pull, can we have it merged? Without touching the `updated_at` col, I have to use `deleted_at` together with `updated_at` to gather the records which have been marked as changed after a timestamp."}}