{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/19683","labels_url":"https://api.github.com/repos/rails/rails/issues/19683/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/19683/comments","events_url":"https://api.github.com/repos/rails/rails/issues/19683/events","html_url":"https://github.com/rails/rails/pull/19683","id":66866438,"number":19683,"title":"Require explicit counter_cache option for has_many","user":{"login":"tristang","id":907105,"avatar_url":"https://avatars.githubusercontent.com/u/907105?v=3","gravatar_id":"","url":"https://api.github.com/users/tristang","html_url":"https://github.com/tristang","followers_url":"https://api.github.com/users/tristang/followers","following_url":"https://api.github.com/users/tristang/following{/other_user}","gists_url":"https://api.github.com/users/tristang/gists{/gist_id}","starred_url":"https://api.github.com/users/tristang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tristang/subscriptions","organizations_url":"https://api.github.com/users/tristang/orgs","repos_url":"https://api.github.com/users/tristang/repos","events_url":"https://api.github.com/users/tristang/events{/privacy}","received_events_url":"https://api.github.com/users/tristang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails/rails/labels/activerecord","name":"activerecord","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-07T12:00:48Z","updated_at":"2015-08-12T03:54:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/19683","html_url":"https://github.com/rails/rails/pull/19683","diff_url":"https://github.com/rails/rails/pull/19683.diff","patch_url":"https://github.com/rails/rails/pull/19683.patch"},"body":"Previously has_many associations assumed a counter_cache was to be used\r\nbased on the presence of an appropriately named column. This is\r\ninconsistent, since the inverse belongs_to association will not make\r\nthis assumption. See issues #19042 #8446.\r\nThis commit checks for the presence of the counter_cache key in the\r\noptions of either the has_many or belongs_to association as well as\r\nensuring that the *_count column is present."},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/130151969","html_url":"https://github.com/rails/rails/pull/19683#issuecomment-130151969","issue_url":"https://api.github.com/repos/rails/rails/issues/19683","id":130151969,"user":{"login":"t-cyrill","id":1283323,"avatar_url":"https://avatars.githubusercontent.com/u/1283323?v=3","gravatar_id":"","url":"https://api.github.com/users/t-cyrill","html_url":"https://github.com/t-cyrill","followers_url":"https://api.github.com/users/t-cyrill/followers","following_url":"https://api.github.com/users/t-cyrill/following{/other_user}","gists_url":"https://api.github.com/users/t-cyrill/gists{/gist_id}","starred_url":"https://api.github.com/users/t-cyrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-cyrill/subscriptions","organizations_url":"https://api.github.com/users/t-cyrill/orgs","repos_url":"https://api.github.com/users/t-cyrill/repos","events_url":"https://api.github.com/users/t-cyrill/events{/privacy}","received_events_url":"https://api.github.com/users/t-cyrill/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T03:54:26Z","updated_at":"2015-08-12T03:54:26Z","body":"+1"}}