{"action":"created","issue":{"url":"https://api.github.com/repos/theforeman/foreman/issues/2875","labels_url":"https://api.github.com/repos/theforeman/foreman/issues/2875/labels{/name}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/2875/comments","events_url":"https://api.github.com/repos/theforeman/foreman/issues/2875/events","html_url":"https://github.com/theforeman/foreman/pull/2875","id":114003484,"number":2875,"title":"Fixes #12344 - Use Rails 4 update_all syntax in migrations","user":{"login":"dLobatog","id":598891,"avatar_url":"https://avatars.githubusercontent.com/u/598891?v=3","gravatar_id":"","url":"https://api.github.com/users/dLobatog","html_url":"https://github.com/dLobatog","followers_url":"https://api.github.com/users/dLobatog/followers","following_url":"https://api.github.com/users/dLobatog/following{/other_user}","gists_url":"https://api.github.com/users/dLobatog/gists{/gist_id}","starred_url":"https://api.github.com/users/dLobatog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dLobatog/subscriptions","organizations_url":"https://api.github.com/users/dLobatog/orgs","repos_url":"https://api.github.com/users/dLobatog/repos","events_url":"https://api.github.com/users/dLobatog/events{/privacy}","received_events_url":"https://api.github.com/users/dLobatog/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/theforeman/foreman/labels/Ready%20to%20merge","name":"Ready to merge","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-29T08:42:41Z","updated_at":"2015-11-02T13:32:50Z","closed_at":"2015-11-02T13:32:50Z","pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/2875","html_url":"https://github.com/theforeman/foreman/pull/2875","diff_url":"https://github.com/theforeman/foreman/pull/2875.diff","patch_url":"https://github.com/theforeman/foreman/pull/2875.patch"},"body":"**Problem**\nRails 3 syntax allows `update_all(old,new)`, however on Rails 4 the only\nway to accomplish that is `where(old).update_all(new)`. Reports STI\ncontains a migration with this.\n\n**Solution**\nChange the migration to use the `where(old).update_all(new)` syntax"},"comment":{"url":"https://api.github.com/repos/theforeman/foreman/issues/comments/153017118","html_url":"https://github.com/theforeman/foreman/pull/2875#issuecomment-153017118","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/2875","id":153017118,"user":{"login":"domcleal","id":482089,"avatar_url":"https://avatars.githubusercontent.com/u/482089?v=3","gravatar_id":"","url":"https://api.github.com/users/domcleal","html_url":"https://github.com/domcleal","followers_url":"https://api.github.com/users/domcleal/followers","following_url":"https://api.github.com/users/domcleal/following{/other_user}","gists_url":"https://api.github.com/users/domcleal/gists{/gist_id}","starred_url":"https://api.github.com/users/domcleal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domcleal/subscriptions","organizations_url":"https://api.github.com/users/domcleal/orgs","repos_url":"https://api.github.com/users/domcleal/repos","events_url":"https://api.github.com/users/domcleal/events{/privacy}","received_events_url":"https://api.github.com/users/domcleal/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T13:32:50Z","updated_at":"2015-11-02T13:32:50Z","body":"Merged as c3a34b7, thanks @dLobatog."}}