{"action":"closed","issue":{"url":"https://api.github.com/repos/annict/annict/issues/225","labels_url":"https://api.github.com/repos/annict/annict/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/annict/annict/issues/225/comments","events_url":"https://api.github.com/repos/annict/annict/issues/225/events","html_url":"https://github.com/annict/annict/issues/225","id":100684260,"number":225,"title":"Work has many Itemsの関係をWork has one Itemの関係に変える","user":{"login":"shimbaco","id":56767,"avatar_url":"https://avatars.githubusercontent.com/u/56767?v=3","gravatar_id":"","url":"https://api.github.com/users/shimbaco","html_url":"https://github.com/shimbaco","followers_url":"https://api.github.com/users/shimbaco/followers","following_url":"https://api.github.com/users/shimbaco/following{/other_user}","gists_url":"https://api.github.com/users/shimbaco/gists{/gist_id}","starred_url":"https://api.github.com/users/shimbaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimbaco/subscriptions","organizations_url":"https://api.github.com/users/shimbaco/orgs","repos_url":"https://api.github.com/users/shimbaco/repos","events_url":"https://api.github.com/users/shimbaco/events{/privacy}","received_events_url":"https://api.github.com/users/shimbaco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-13T03:51:37Z","updated_at":"2015-09-20T02:07:04Z","closed_at":"2015-09-20T02:07:04Z","body":"現状1作品につき1作品画像しか表示しておらず、1対多で紐付いている意味が無いため、1対1にするようにします。\r\n\r\n#### デプロイの流れ\r\n\r\n* [x] `git push master heroku`\r\n* [x] `heroku run rake tmp:delete_sub_items`\r\n* [x] `heroku run rake db:migrate`\r\n  * `items.main` を消す\r\n  * `items.work_id` にユニーク制約を設定する"}}