{"action":"created","comment":{"url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/pulls/comments/64172871","id":64172871,"diff_hunk":"@@ -0,0 +1,71 @@\n+DB設計\n+\n+Users_table\n+\n+association\n+\n+user has_many :projects\n+user has_many :comments\n+user has_many :likes\n+column\n+\n+t.integer :id\n+t.string :name\n+t.string :mail\n+t.string :password\n+t.text :profile_image\n+t.string :profile\n+t.string :works\n+t.integer :project_id\n+Projects_table\n+\n+association\n+\n+project belongs_to :user\n+project has_many :comments\n+project has_many :images\n+project has_many :likes\n+column\n+\n+t.integer :id\n+t.string :title\n+t.text :catch_copy\n+t.text :concept\n+t.timestamps\n+t.integer :image_id\n+t.integer :like_id\n+Images_table\n+\n+association\n+\n+images belongs_to :project\n+column\n+\n+t.integer :id\n+t.text :image\n+t.integer :user_id\n+t.integer :project_id\n+Comments_table\n+\n+association\n+\n+comments belongs_to user\n+comments belongs_to project\n+column\n+\n+t.integer :id\n+t.text :text\n+t.integer :user_id\n+t.integer :project_id\n+Likes_table\n+\n+association\n+\n+like belongs_to :user\n+like belongs_to :project\n+column\n+\n+t.integer :id\n+t.text :image","path":"README.md","position":69,"original_position":69,"commit_id":"1179582ff0a53e8a282a87b201805b49e301311c","original_commit_id":"1179582ff0a53e8a282a87b201805b49e301311c","user":{"login":"souichirou","id":14070363,"avatar_url":"https://avatars.githubusercontent.com/u/14070363?v=3","gravatar_id":"","url":"https://api.github.com/users/souichirou","html_url":"https://github.com/souichirou","followers_url":"https://api.github.com/users/souichirou/followers","following_url":"https://api.github.com/users/souichirou/following{/other_user}","gists_url":"https://api.github.com/users/souichirou/gists{/gist_id}","starred_url":"https://api.github.com/users/souichirou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/souichirou/subscriptions","organizations_url":"https://api.github.com/users/souichirou/orgs","repos_url":"https://api.github.com/users/souichirou/repos","events_url":"https://api.github.com/users/souichirou/events{/privacy}","received_events_url":"https://api.github.com/users/souichirou/received_events","type":"User","site_admin":false},"body":"ここはJSで実装されているので、imageを保存するカラムはいらないです。","created_at":"2016-05-23T06:14:18Z","updated_at":"2016-05-23T06:14:18Z","html_url":"https://github.com/KaikiHamaguchi/Protospace/pull/1#discussion_r64172871","pull_request_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/KaikiHamaguchi/Protospace/pulls/comments/64172871"},"html":{"href":"https://github.com/KaikiHamaguchi/Protospace/pull/1#discussion_r64172871"},"pull_request":{"href":"https://api.github.com/repos/KaikiHamaguchi/Protospace/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/pulls/1","id":71006389,"html_url":"https://github.com/KaikiHamaguchi/Protospace/pull/1","diff_url":"https://github.com/KaikiHamaguchi/Protospace/pull/1.diff","patch_url":"https://github.com/KaikiHamaguchi/Protospace/pull/1.patch","issue_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/issues/1","number":1,"state":"open","locked":false,"title":"DB設計","user":{"login":"KaikiHamaguchi","id":17312969,"avatar_url":"https://avatars.githubusercontent.com/u/17312969?v=3","gravatar_id":"","url":"https://api.github.com/users/KaikiHamaguchi","html_url":"https://github.com/KaikiHamaguchi","followers_url":"https://api.github.com/users/KaikiHamaguchi/followers","following_url":"https://api.github.com/users/KaikiHamaguchi/following{/other_user}","gists_url":"https://api.github.com/users/KaikiHamaguchi/gists{/gist_id}","starred_url":"https://api.github.com/users/KaikiHamaguchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaikiHamaguchi/subscriptions","organizations_url":"https://api.github.com/users/KaikiHamaguchi/orgs","repos_url":"https://api.github.com/users/KaikiHamaguchi/repos","events_url":"https://api.github.com/users/KaikiHamaguchi/events{/privacy}","received_events_url":"https://api.github.com/users/KaikiHamaguchi/received_events","type":"User","site_admin":false},"body":"What\r\nデータベース設計\r\nカラムやアソシエーションの指定\r\nWhy\r\nデータベースをアプリケーションで使用するため\r\n","created_at":"2016-05-23T05:23:19Z","updated_at":"2016-05-23T06:14:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81ba922f752583f35f1033c9b4dfe0767327d67b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/pulls/1/commits","review_comments_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/pulls/1/comments","review_comment_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/issues/1/comments","statuses_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/statuses/1179582ff0a53e8a282a87b201805b49e301311c","head":{"label":"KaikiHamaguchi:DB設計","ref":"DB設計","sha":"1179582ff0a53e8a282a87b201805b49e301311c","user":{"login":"KaikiHamaguchi","id":17312969,"avatar_url":"https://avatars.githubusercontent.com/u/17312969?v=3","gravatar_id":"","url":"https://api.github.com/users/KaikiHamaguchi","html_url":"https://github.com/KaikiHamaguchi","followers_url":"https://api.github.com/users/KaikiHamaguchi/followers","following_url":"https://api.github.com/users/KaikiHamaguchi/following{/other_user}","gists_url":"https://api.github.com/users/KaikiHamaguchi/gists{/gist_id}","starred_url":"https://api.github.com/users/KaikiHamaguchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaikiHamaguchi/subscriptions","organizations_url":"https://api.github.com/users/KaikiHamaguchi/orgs","repos_url":"https://api.github.com/users/KaikiHamaguchi/repos","events_url":"https://api.github.com/users/KaikiHamaguchi/events{/privacy}","received_events_url":"https://api.github.com/users/KaikiHamaguchi/received_events","type":"User","site_admin":false},"repo":{"id":59290238,"name":"Protospace","full_name":"KaikiHamaguchi/Protospace","owner":{"login":"KaikiHamaguchi","id":17312969,"avatar_url":"https://avatars.githubusercontent.com/u/17312969?v=3","gravatar_id":"","url":"https://api.github.com/users/KaikiHamaguchi","html_url":"https://github.com/KaikiHamaguchi","followers_url":"https://api.github.com/users/KaikiHamaguchi/followers","following_url":"https://api.github.com/users/KaikiHamaguchi/following{/other_user}","gists_url":"https://api.github.com/users/KaikiHamaguchi/gists{/gist_id}","starred_url":"https://api.github.com/users/KaikiHamaguchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaikiHamaguchi/subscriptions","organizations_url":"https://api.github.com/users/KaikiHamaguchi/orgs","repos_url":"https://api.github.com/users/KaikiHamaguchi/repos","events_url":"https://api.github.com/users/KaikiHamaguchi/events{/privacy}","received_events_url":"https://api.github.com/users/KaikiHamaguchi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KaikiHamaguchi/Protospace","description":"","fork":false,"url":"https://api.github.com/repos/KaikiHamaguchi/Protospace","forks_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/forks","keys_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/teams","hooks_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/hooks","issue_events_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/issues/events{/number}","events_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/events","assignees_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/assignees{/user}","branches_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/branches{/branch}","tags_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/tags","blobs_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/languages","stargazers_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/stargazers","contributors_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/contributors","subscribers_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/subscribers","subscription_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/subscription","commits_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/contents/{+path}","compare_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/merges","archive_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/downloads","issues_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/issues{/number}","pulls_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/labels{/name}","releases_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/releases{/id}","deployments_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/deployments","created_at":"2016-05-20T11:50:25Z","updated_at":"2016-05-20T11:50:25Z","pushed_at":"2016-05-23T05:23:19Z","git_url":"git://github.com/KaikiHamaguchi/Protospace.git","ssh_url":"git@github.com:KaikiHamaguchi/Protospace.git","clone_url":"https://github.com/KaikiHamaguchi/Protospace.git","svn_url":"https://github.com/KaikiHamaguchi/Protospace","homepage":"","size":17,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"add_Gems"}},"base":{"label":"KaikiHamaguchi:add_Gems","ref":"add_Gems","sha":"407fd4b00ef656017b1e26611f079e43722f299b","user":{"login":"KaikiHamaguchi","id":17312969,"avatar_url":"https://avatars.githubusercontent.com/u/17312969?v=3","gravatar_id":"","url":"https://api.github.com/users/KaikiHamaguchi","html_url":"https://github.com/KaikiHamaguchi","followers_url":"https://api.github.com/users/KaikiHamaguchi/followers","following_url":"https://api.github.com/users/KaikiHamaguchi/following{/other_user}","gists_url":"https://api.github.com/users/KaikiHamaguchi/gists{/gist_id}","starred_url":"https://api.github.com/users/KaikiHamaguchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaikiHamaguchi/subscriptions","organizations_url":"https://api.github.com/users/KaikiHamaguchi/orgs","repos_url":"https://api.github.com/users/KaikiHamaguchi/repos","events_url":"https://api.github.com/users/KaikiHamaguchi/events{/privacy}","received_events_url":"https://api.github.com/users/KaikiHamaguchi/received_events","type":"User","site_admin":false},"repo":{"id":59290238,"name":"Protospace","full_name":"KaikiHamaguchi/Protospace","owner":{"login":"KaikiHamaguchi","id":17312969,"avatar_url":"https://avatars.githubusercontent.com/u/17312969?v=3","gravatar_id":"","url":"https://api.github.com/users/KaikiHamaguchi","html_url":"https://github.com/KaikiHamaguchi","followers_url":"https://api.github.com/users/KaikiHamaguchi/followers","following_url":"https://api.github.com/users/KaikiHamaguchi/following{/other_user}","gists_url":"https://api.github.com/users/KaikiHamaguchi/gists{/gist_id}","starred_url":"https://api.github.com/users/KaikiHamaguchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaikiHamaguchi/subscriptions","organizations_url":"https://api.github.com/users/KaikiHamaguchi/orgs","repos_url":"https://api.github.com/users/KaikiHamaguchi/repos","events_url":"https://api.github.com/users/KaikiHamaguchi/events{/privacy}","received_events_url":"https://api.github.com/users/KaikiHamaguchi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KaikiHamaguchi/Protospace","description":"","fork":false,"url":"https://api.github.com/repos/KaikiHamaguchi/Protospace","forks_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/forks","keys_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/teams","hooks_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/hooks","issue_events_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/issues/events{/number}","events_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/events","assignees_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/assignees{/user}","branches_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/branches{/branch}","tags_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/tags","blobs_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/languages","stargazers_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/stargazers","contributors_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/contributors","subscribers_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/subscribers","subscription_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/subscription","commits_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/contents/{+path}","compare_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/merges","archive_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/downloads","issues_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/issues{/number}","pulls_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/labels{/name}","releases_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/releases{/id}","deployments_url":"https://api.github.com/repos/KaikiHamaguchi/Protospace/deployments","created_at":"2016-05-20T11:50:25Z","updated_at":"2016-05-20T11:50:25Z","pushed_at":"2016-05-23T05:23:19Z","git_url":"git://github.com/KaikiHamaguchi/Protospace.git","ssh_url":"git@github.com:KaikiHamaguchi/Protospace.git","clone_url":"https://github.com/KaikiHamaguchi/Protospace.git","svn_url":"https://github.com/KaikiHamaguchi/Protospace","homepage":"","size":17,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"add_Gems"}},"_links":{"self":{"href":"https://api.github.com/repos/KaikiHamaguchi/Protospace/pulls/1"},"html":{"href":"https://github.com/KaikiHamaguchi/Protospace/pull/1"},"issue":{"href":"https://api.github.com/repos/KaikiHamaguchi/Protospace/issues/1"},"comments":{"href":"https://api.github.com/repos/KaikiHamaguchi/Protospace/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/KaikiHamaguchi/Protospace/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/KaikiHamaguchi/Protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KaikiHamaguchi/Protospace/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/KaikiHamaguchi/Protospace/statuses/1179582ff0a53e8a282a87b201805b49e301311c"}}}}
{"actor":{"display_login":"souichirou"}}