{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/18937","labels_url":"https://api.github.com/repos/rails/rails/issues/18937/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/18937/comments","events_url":"https://api.github.com/repos/rails/rails/issues/18937/events","html_url":"https://github.com/rails/rails/pull/18937","id":57677630,"number":18937,"title":"Require `belongs_to` by default.","user":{"login":"simi","id":193936,"avatar_url":"https://avatars.githubusercontent.com/u/193936?v=3","gravatar_id":"","url":"https://api.github.com/users/simi","html_url":"https://github.com/simi","followers_url":"https://api.github.com/users/simi/followers","following_url":"https://api.github.com/users/simi/following{/other_user}","gists_url":"https://api.github.com/users/simi/gists{/gist_id}","starred_url":"https://api.github.com/users/simi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simi/subscriptions","organizations_url":"https://api.github.com/users/simi/orgs","repos_url":"https://api.github.com/users/simi/repos","events_url":"https://api.github.com/users/simi/events{/privacy}","received_events_url":"https://api.github.com/users/simi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-14T02:27:40Z","updated_at":"2015-02-18T22:31:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/18937","html_url":"https://github.com/rails/rails/pull/18937","diff_url":"https://github.com/rails/rails/pull/18937.diff","patch_url":"https://github.com/rails/rails/pull/18937.patch"},"body":"Deprecate `required` option in favor of `optional` for belongs_to.\r\n\r\ncloses #18233"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/74962737","html_url":"https://github.com/rails/rails/pull/18937#issuecomment-74962737","issue_url":"https://api.github.com/repos/rails/rails/issues/18937","id":74962737,"user":{"login":"dhh","id":2741,"avatar_url":"https://avatars.githubusercontent.com/u/2741?v=3","gravatar_id":"","url":"https://api.github.com/users/dhh","html_url":"https://github.com/dhh","followers_url":"https://api.github.com/users/dhh/followers","following_url":"https://api.github.com/users/dhh/following{/other_user}","gists_url":"https://api.github.com/users/dhh/gists{/gist_id}","starred_url":"https://api.github.com/users/dhh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhh/subscriptions","organizations_url":"https://api.github.com/users/dhh/orgs","repos_url":"https://api.github.com/users/dhh/repos","events_url":"https://api.github.com/users/dhh/events{/privacy}","received_events_url":"https://api.github.com/users/dhh/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T22:31:43Z","updated_at":"2015-02-18T22:31:43Z","body":"Nah, don’t think that’s necessary. Will be a very uncommon option to use, I think.\n\n> On Feb 18, 2015, at 14:30, Josef Šimánek <notifications@github.com> wrote:\n> \n> Should I add also this to generator? rails g scaffold post author:belongs_to:optional ?\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n\n"}}