{"action":"created","comment":{"url":"https://api.github.com/repos/hatasan703/chat-space/pulls/comments/187773780","pull_request_review_id":119627134,"id":187773780,"diff_hunk":"@@ -0,0 +1,7 @@\n+class Group < ApplicationRecord\n+  has_many :group_users\n+  has_many :users, through: :group_users\n+\n+  validates :name, presence: true\n+  validates :name, uniqueness: true","path":"app/models/group.rb","position":6,"original_position":6,"commit_id":"67019be405498e4bb067d26f15dcc393aa97d4e4","original_commit_id":"67019be405498e4bb067d26f15dcc393aa97d4e4","user":{"login":"romukey","id":22656143,"avatar_url":"https://avatars3.githubusercontent.com/u/22656143?v=4","gravatar_id":"","url":"https://api.github.com/users/romukey","html_url":"https://github.com/romukey","followers_url":"https://api.github.com/users/romukey/followers","following_url":"https://api.github.com/users/romukey/following{/other_user}","gists_url":"https://api.github.com/users/romukey/gists{/gist_id}","starred_url":"https://api.github.com/users/romukey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romukey/subscriptions","organizations_url":"https://api.github.com/users/romukey/orgs","repos_url":"https://api.github.com/users/romukey/repos","events_url":"https://api.github.com/users/romukey/events{/privacy}","received_events_url":"https://api.github.com/users/romukey/received_events","type":"User","site_admin":false},"body":"これ、`validates :name, presence, uniqueness: true` とかでカラムに１つのバリデーションをつけるようにしてくれると","created_at":"2018-05-12T14:04:41Z","updated_at":"2018-05-12T14:14:28Z","html_url":"https://github.com/hatasan703/chat-space/pull/4#discussion_r187773780","pull_request_url":"https://api.github.com/repos/hatasan703/chat-space/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/hatasan703/chat-space/pulls/comments/187773780"},"html":{"href":"https://github.com/hatasan703/chat-space/pull/4#discussion_r187773780"},"pull_request":{"href":"https://api.github.com/repos/hatasan703/chat-space/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/hatasan703/chat-space/pulls/4","id":187616749,"html_url":"https://github.com/hatasan703/chat-space/pull/4","diff_url":"https://github.com/hatasan703/chat-space/pull/4.diff","patch_url":"https://github.com/hatasan703/chat-space/pull/4.patch","issue_url":"https://api.github.com/repos/hatasan703/chat-space/issues/4","number":4,"state":"open","locked":false,"title":"Create group function","user":{"login":"hatasan703","id":33019622,"avatar_url":"https://avatars0.githubusercontent.com/u/33019622?v=4","gravatar_id":"","url":"https://api.github.com/users/hatasan703","html_url":"https://github.com/hatasan703","followers_url":"https://api.github.com/users/hatasan703/followers","following_url":"https://api.github.com/users/hatasan703/following{/other_user}","gists_url":"https://api.github.com/users/hatasan703/gists{/gist_id}","starred_url":"https://api.github.com/users/hatasan703/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hatasan703/subscriptions","organizations_url":"https://api.github.com/users/hatasan703/orgs","repos_url":"https://api.github.com/users/hatasan703/repos","events_url":"https://api.github.com/users/hatasan703/events{/privacy}","received_events_url":"https://api.github.com/users/hatasan703/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nグループ作成,編集機能の実装\r\n\r\n# WHY\r\nサービスに必要なため\r\n\r\n![2018-05-12 20 56 58](https://user-images.githubusercontent.com/33019622/39957090-d9349c2a-5627-11e8-9112-f123c6946869.png)\r\n![2018-05-12 20 57 16](https://user-images.githubusercontent.com/33019622/39957092-db605048-5627-11e8-9910-4c9ef10396b1.png)\r\n![2018-05-12 20 57 39](https://user-images.githubusercontent.com/33019622/39957094-de7c1514-5627-11e8-8910-ab2b59fec39e.png)\r\n![2018-05-12 20 59 52](https://user-images.githubusercontent.com/33019622/39957095-e0ff69e4-5627-11e8-9224-bcee5ebea47a.png)\r\n![2018-05-12 21 00 10](https://user-images.githubusercontent.com/33019622/39957097-e6813636-5627-11e8-8b6b-95b81e2e722a.png)\r\n","created_at":"2018-05-12T11:20:26Z","updated_at":"2018-05-12T14:14:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37e6a3170293d1d8e34a6d8c3fbcfa615b8fd7c3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hatasan703/chat-space/pulls/4/commits","review_comments_url":"https://api.github.com/repos/hatasan703/chat-space/pulls/4/comments","review_comment_url":"https://api.github.com/repos/hatasan703/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hatasan703/chat-space/issues/4/comments","statuses_url":"https://api.github.com/repos/hatasan703/chat-space/statuses/67019be405498e4bb067d26f15dcc393aa97d4e4","head":{"label":"hatasan703:create-group-function","ref":"create-group-function","sha":"67019be405498e4bb067d26f15dcc393aa97d4e4","user":{"login":"hatasan703","id":33019622,"avatar_url":"https://avatars0.githubusercontent.com/u/33019622?v=4","gravatar_id":"","url":"https://api.github.com/users/hatasan703","html_url":"https://github.com/hatasan703","followers_url":"https://api.github.com/users/hatasan703/followers","following_url":"https://api.github.com/users/hatasan703/following{/other_user}","gists_url":"https://api.github.com/users/hatasan703/gists{/gist_id}","starred_url":"https://api.github.com/users/hatasan703/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hatasan703/subscriptions","organizations_url":"https://api.github.com/users/hatasan703/orgs","repos_url":"https://api.github.com/users/hatasan703/repos","events_url":"https://api.github.com/users/hatasan703/events{/privacy}","received_events_url":"https://api.github.com/users/hatasan703/received_events","type":"User","site_admin":false},"repo":{"id":123916132,"name":"chat-space","full_name":"hatasan703/chat-space","owner":{"login":"hatasan703","id":33019622,"avatar_url":"https://avatars0.githubusercontent.com/u/33019622?v=4","gravatar_id":"","url":"https://api.github.com/users/hatasan703","html_url":"https://github.com/hatasan703","followers_url":"https://api.github.com/users/hatasan703/followers","following_url":"https://api.github.com/users/hatasan703/following{/other_user}","gists_url":"https://api.github.com/users/hatasan703/gists{/gist_id}","starred_url":"https://api.github.com/users/hatasan703/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hatasan703/subscriptions","organizations_url":"https://api.github.com/users/hatasan703/orgs","repos_url":"https://api.github.com/users/hatasan703/repos","events_url":"https://api.github.com/users/hatasan703/events{/privacy}","received_events_url":"https://api.github.com/users/hatasan703/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hatasan703/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/hatasan703/chat-space","forks_url":"https://api.github.com/repos/hatasan703/chat-space/forks","keys_url":"https://api.github.com/repos/hatasan703/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hatasan703/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hatasan703/chat-space/teams","hooks_url":"https://api.github.com/repos/hatasan703/chat-space/hooks","issue_events_url":"https://api.github.com/repos/hatasan703/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/hatasan703/chat-space/events","assignees_url":"https://api.github.com/repos/hatasan703/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/hatasan703/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/hatasan703/chat-space/tags","blobs_url":"https://api.github.com/repos/hatasan703/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hatasan703/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hatasan703/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/hatasan703/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hatasan703/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/hatasan703/chat-space/languages","stargazers_url":"https://api.github.com/repos/hatasan703/chat-space/stargazers","contributors_url":"https://api.github.com/repos/hatasan703/chat-space/contributors","subscribers_url":"https://api.github.com/repos/hatasan703/chat-space/subscribers","subscription_url":"https://api.github.com/repos/hatasan703/chat-space/subscription","commits_url":"https://api.github.com/repos/hatasan703/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/hatasan703/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/hatasan703/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/hatasan703/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/hatasan703/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/hatasan703/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hatasan703/chat-space/merges","archive_url":"https://api.github.com/repos/hatasan703/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hatasan703/chat-space/downloads","issues_url":"https://api.github.com/repos/hatasan703/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/hatasan703/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/hatasan703/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/hatasan703/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hatasan703/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/hatasan703/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/hatasan703/chat-space/deployments","created_at":"2018-03-05T12:27:47Z","updated_at":"2018-05-05T05:47:51Z","pushed_at":"2018-05-12T12:00:31Z","git_url":"git://github.com/hatasan703/chat-space.git","ssh_url":"git@github.com:hatasan703/chat-space.git","clone_url":"https://github.com/hatasan703/chat-space.git","svn_url":"https://github.com/hatasan703/chat-space","homepage":null,"size":147,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hatasan703:master","ref":"master","sha":"417c334212877a01484ef9a42e1672717354a79b","user":{"login":"hatasan703","id":33019622,"avatar_url":"https://avatars0.githubusercontent.com/u/33019622?v=4","gravatar_id":"","url":"https://api.github.com/users/hatasan703","html_url":"https://github.com/hatasan703","followers_url":"https://api.github.com/users/hatasan703/followers","following_url":"https://api.github.com/users/hatasan703/following{/other_user}","gists_url":"https://api.github.com/users/hatasan703/gists{/gist_id}","starred_url":"https://api.github.com/users/hatasan703/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hatasan703/subscriptions","organizations_url":"https://api.github.com/users/hatasan703/orgs","repos_url":"https://api.github.com/users/hatasan703/repos","events_url":"https://api.github.com/users/hatasan703/events{/privacy}","received_events_url":"https://api.github.com/users/hatasan703/received_events","type":"User","site_admin":false},"repo":{"id":123916132,"name":"chat-space","full_name":"hatasan703/chat-space","owner":{"login":"hatasan703","id":33019622,"avatar_url":"https://avatars0.githubusercontent.com/u/33019622?v=4","gravatar_id":"","url":"https://api.github.com/users/hatasan703","html_url":"https://github.com/hatasan703","followers_url":"https://api.github.com/users/hatasan703/followers","following_url":"https://api.github.com/users/hatasan703/following{/other_user}","gists_url":"https://api.github.com/users/hatasan703/gists{/gist_id}","starred_url":"https://api.github.com/users/hatasan703/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hatasan703/subscriptions","organizations_url":"https://api.github.com/users/hatasan703/orgs","repos_url":"https://api.github.com/users/hatasan703/repos","events_url":"https://api.github.com/users/hatasan703/events{/privacy}","received_events_url":"https://api.github.com/users/hatasan703/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hatasan703/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/hatasan703/chat-space","forks_url":"https://api.github.com/repos/hatasan703/chat-space/forks","keys_url":"https://api.github.com/repos/hatasan703/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hatasan703/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hatasan703/chat-space/teams","hooks_url":"https://api.github.com/repos/hatasan703/chat-space/hooks","issue_events_url":"https://api.github.com/repos/hatasan703/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/hatasan703/chat-space/events","assignees_url":"https://api.github.com/repos/hatasan703/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/hatasan703/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/hatasan703/chat-space/tags","blobs_url":"https://api.github.com/repos/hatasan703/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hatasan703/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hatasan703/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/hatasan703/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hatasan703/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/hatasan703/chat-space/languages","stargazers_url":"https://api.github.com/repos/hatasan703/chat-space/stargazers","contributors_url":"https://api.github.com/repos/hatasan703/chat-space/contributors","subscribers_url":"https://api.github.com/repos/hatasan703/chat-space/subscribers","subscription_url":"https://api.github.com/repos/hatasan703/chat-space/subscription","commits_url":"https://api.github.com/repos/hatasan703/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/hatasan703/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/hatasan703/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/hatasan703/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/hatasan703/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/hatasan703/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hatasan703/chat-space/merges","archive_url":"https://api.github.com/repos/hatasan703/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hatasan703/chat-space/downloads","issues_url":"https://api.github.com/repos/hatasan703/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/hatasan703/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/hatasan703/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/hatasan703/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hatasan703/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/hatasan703/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/hatasan703/chat-space/deployments","created_at":"2018-03-05T12:27:47Z","updated_at":"2018-05-05T05:47:51Z","pushed_at":"2018-05-12T12:00:31Z","git_url":"git://github.com/hatasan703/chat-space.git","ssh_url":"git@github.com:hatasan703/chat-space.git","clone_url":"https://github.com/hatasan703/chat-space.git","svn_url":"https://github.com/hatasan703/chat-space","homepage":null,"size":147,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hatasan703/chat-space/pulls/4"},"html":{"href":"https://github.com/hatasan703/chat-space/pull/4"},"issue":{"href":"https://api.github.com/repos/hatasan703/chat-space/issues/4"},"comments":{"href":"https://api.github.com/repos/hatasan703/chat-space/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/hatasan703/chat-space/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/hatasan703/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hatasan703/chat-space/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/hatasan703/chat-space/statuses/67019be405498e4bb067d26f15dcc393aa97d4e4"}},"author_association":"OWNER"}}
{"actor":{"display_login":"romukey"}}