{"action":"opened","issue":{"url":"https://api.github.com/repos/Motonary/Orbit/issues/186","repository_url":"https://api.github.com/repos/Motonary/Orbit","labels_url":"https://api.github.com/repos/Motonary/Orbit/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/Motonary/Orbit/issues/186/comments","events_url":"https://api.github.com/repos/Motonary/Orbit/issues/186/events","html_url":"https://github.com/Motonary/Orbit/issues/186","id":395085486,"node_id":"MDU6SXNzdWUzOTUwODU0ODY=","number":186,"title":"恒星を破壊する際にFlagを立てるのではなくDBから消してしまっている","user":{"login":"bokusunny","id":39128496,"node_id":"MDQ6VXNlcjM5MTI4NDk2","avatar_url":"https://avatars3.githubusercontent.com/u/39128496?v=4","gravatar_id":"","url":"https://api.github.com/users/bokusunny","html_url":"https://github.com/bokusunny","followers_url":"https://api.github.com/users/bokusunny/followers","following_url":"https://api.github.com/users/bokusunny/following{/other_user}","gists_url":"https://api.github.com/users/bokusunny/gists{/gist_id}","starred_url":"https://api.github.com/users/bokusunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bokusunny/subscriptions","organizations_url":"https://api.github.com/users/bokusunny/orgs","repos_url":"https://api.github.com/users/bokusunny/repos","events_url":"https://api.github.com/users/bokusunny/events{/privacy}","received_events_url":"https://api.github.com/users/bokusunny/received_events","type":"User","site_admin":false},"labels":[{"id":1081274295,"node_id":"MDU6TGFiZWwxMDgxMjc0Mjk1","url":"https://api.github.com/repos/Motonary/Orbit/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":{"login":"bokusunny","id":39128496,"node_id":"MDQ6VXNlcjM5MTI4NDk2","avatar_url":"https://avatars3.githubusercontent.com/u/39128496?v=4","gravatar_id":"","url":"https://api.github.com/users/bokusunny","html_url":"https://github.com/bokusunny","followers_url":"https://api.github.com/users/bokusunny/followers","following_url":"https://api.github.com/users/bokusunny/following{/other_user}","gists_url":"https://api.github.com/users/bokusunny/gists{/gist_id}","starred_url":"https://api.github.com/users/bokusunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bokusunny/subscriptions","organizations_url":"https://api.github.com/users/bokusunny/orgs","repos_url":"https://api.github.com/users/bokusunny/repos","events_url":"https://api.github.com/users/bokusunny/events{/privacy}","received_events_url":"https://api.github.com/users/bokusunny/received_events","type":"User","site_admin":false},"assignees":[{"login":"bokusunny","id":39128496,"node_id":"MDQ6VXNlcjM5MTI4NDk2","avatar_url":"https://avatars3.githubusercontent.com/u/39128496?v=4","gravatar_id":"","url":"https://api.github.com/users/bokusunny","html_url":"https://github.com/bokusunny","followers_url":"https://api.github.com/users/bokusunny/followers","following_url":"https://api.github.com/users/bokusunny/following{/other_user}","gists_url":"https://api.github.com/users/bokusunny/gists{/gist_id}","starred_url":"https://api.github.com/users/bokusunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bokusunny/subscriptions","organizations_url":"https://api.github.com/users/bokusunny/orgs","repos_url":"https://api.github.com/users/bokusunny/repos","events_url":"https://api.github.com/users/bokusunny/events{/privacy}","received_events_url":"https://api.github.com/users/bokusunny/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2019-01-01T13:57:28Z","updated_at":"2019-01-01T13:57:28Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## 概要\r\nタイトルに同じ。\r\nそのため、恒星破壊後HistoryPageに行っても恒星はない、ついでに`dependent: :destroy`なので従属するAssignmentsもDBから消えてしまう\r\n対策として、Assignmentと同じようにProjectsもテーブルにdestroyed_flagをたてて破壊時にはそこをtrueにするようにする\r\n"}}
{"actor":{"display_login":"bokusunny"}}