{"action":"created","issue":{"url":"https://api.github.com/repos/zdennis/activerecord-import/issues/500","repository_url":"https://api.github.com/repos/zdennis/activerecord-import","labels_url":"https://api.github.com/repos/zdennis/activerecord-import/issues/500/labels{/name}","comments_url":"https://api.github.com/repos/zdennis/activerecord-import/issues/500/comments","events_url":"https://api.github.com/repos/zdennis/activerecord-import/issues/500/events","html_url":"https://github.com/zdennis/activerecord-import/pull/500","id":296998628,"number":500,"title":" Enabled to update lock_version of model","user":{"login":"aimerald","id":7971341,"avatar_url":"https://avatars2.githubusercontent.com/u/7971341?v=4","gravatar_id":"","url":"https://api.github.com/users/aimerald","html_url":"https://github.com/aimerald","followers_url":"https://api.github.com/users/aimerald/followers","following_url":"https://api.github.com/users/aimerald/following{/other_user}","gists_url":"https://api.github.com/users/aimerald/gists{/gist_id}","starred_url":"https://api.github.com/users/aimerald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aimerald/subscriptions","organizations_url":"https://api.github.com/users/aimerald/orgs","repos_url":"https://api.github.com/users/aimerald/repos","events_url":"https://api.github.com/users/aimerald/events{/privacy}","received_events_url":"https://api.github.com/users/aimerald/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-14T07:23:38Z","updated_at":"2018-02-18T03:08:39Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/zdennis/activerecord-import/pulls/500","html_url":"https://github.com/zdennis/activerecord-import/pull/500","diff_url":"https://github.com/zdennis/activerecord-import/pull/500.diff","patch_url":"https://github.com/zdennis/activerecord-import/pull/500.patch"},"body":"Hi!\r\nThanks for making ActiveRecord-import!!\r\nThis is great gem!\r\n\r\n# Purpose\r\nI wanted to solve this problem\r\n> It would be useful to automatically be able to increment the lock_version on duplicate key update.\r\n#472 \r\n\r\n# did\r\n* [x] I tested mysql!.\r\n\r\n# yet\r\n* [ ] I did not tested postgres.\r\n\r\n# Approach\r\n* When checking if there is a lock_version column at the time of update processing, update it\r\n\r\nSorry for my poor English.\r\nthank you for reading! (/･ω･)/"},"comment":{"url":"https://api.github.com/repos/zdennis/activerecord-import/issues/comments/366489094","html_url":"https://github.com/zdennis/activerecord-import/pull/500#issuecomment-366489094","issue_url":"https://api.github.com/repos/zdennis/activerecord-import/issues/500","id":366489094,"user":{"login":"aimerald","id":7971341,"avatar_url":"https://avatars2.githubusercontent.com/u/7971341?v=4","gravatar_id":"","url":"https://api.github.com/users/aimerald","html_url":"https://github.com/aimerald","followers_url":"https://api.github.com/users/aimerald/followers","following_url":"https://api.github.com/users/aimerald/following{/other_user}","gists_url":"https://api.github.com/users/aimerald/gists{/gist_id}","starred_url":"https://api.github.com/users/aimerald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aimerald/subscriptions","organizations_url":"https://api.github.com/users/aimerald/orgs","repos_url":"https://api.github.com/users/aimerald/repos","events_url":"https://api.github.com/users/aimerald/events{/privacy}","received_events_url":"https://api.github.com/users/aimerald/received_events","type":"User","site_admin":false},"created_at":"2018-02-18T03:08:39Z","updated_at":"2018-02-18T03:08:39Z","author_association":"NONE","body":"I think that it is difficult to update if I do not know the current `lock_version` value of the object...\r\nIs my idea wrong...??"}}
{"actor":{"display_login":"aimerald"}}