{"action":"created","comment":{"url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/pulls/comments/42627945","id":42627945,"diff_hunk":"@@ -4,5 +4,5 @@ class Company < ActiveRecord::Base\n   has_many :buildings, through: :sites\n   has_many :rooms, through: :buildings\n   has_many :attendees, through: :users\n-  has_many :events, through: :attendees\n+  has_many :events, through: :rooms","path":"app/models/company.rb","position":5,"original_position":5,"commit_id":"3f875d8a09c9acbe5757b0f01ac6c4d19d53e959","original_commit_id":"3f875d8a09c9acbe5757b0f01ac6c4d19d53e959","user":{"login":"jah2488","id":249209,"avatar_url":"https://avatars.githubusercontent.com/u/249209?v=3","gravatar_id":"","url":"https://api.github.com/users/jah2488","html_url":"https://github.com/jah2488","followers_url":"https://api.github.com/users/jah2488/followers","following_url":"https://api.github.com/users/jah2488/following{/other_user}","gists_url":"https://api.github.com/users/jah2488/gists{/gist_id}","starred_url":"https://api.github.com/users/jah2488/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jah2488/subscriptions","organizations_url":"https://api.github.com/users/jah2488/orgs","repos_url":"https://api.github.com/users/jah2488/repos","events_url":"https://api.github.com/users/jah2488/events{/privacy}","received_events_url":"https://api.github.com/users/jah2488/received_events","type":"User","site_admin":false},"body":"Why not, `has_many :events, through: :users` ?","created_at":"2015-10-21T14:12:21Z","updated_at":"2015-10-21T14:12:21Z","html_url":"https://github.com/tiy-austin-ror/Schedlr/pull/27#discussion_r42627945","pull_request_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/tiy-austin-ror/Schedlr/pulls/comments/42627945"},"html":{"href":"https://github.com/tiy-austin-ror/Schedlr/pull/27#discussion_r42627945"},"pull_request":{"href":"https://api.github.com/repos/tiy-austin-ror/Schedlr/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/pulls/27","id":48287090,"html_url":"https://github.com/tiy-austin-ror/Schedlr/pull/27","diff_url":"https://github.com/tiy-austin-ror/Schedlr/pull/27.diff","patch_url":"https://github.com/tiy-austin-ror/Schedlr/pull/27.patch","issue_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/issues/27","number":27,"state":"open","locked":false,"title":"Attendee","user":{"login":"cmccammon","id":13893602,"avatar_url":"https://avatars.githubusercontent.com/u/13893602?v=3","gravatar_id":"","url":"https://api.github.com/users/cmccammon","html_url":"https://github.com/cmccammon","followers_url":"https://api.github.com/users/cmccammon/followers","following_url":"https://api.github.com/users/cmccammon/following{/other_user}","gists_url":"https://api.github.com/users/cmccammon/gists{/gist_id}","starred_url":"https://api.github.com/users/cmccammon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmccammon/subscriptions","organizations_url":"https://api.github.com/users/cmccammon/orgs","repos_url":"https://api.github.com/users/cmccammon/repos","events_url":"https://api.github.com/users/cmccammon/events{/privacy}","received_events_url":"https://api.github.com/users/cmccammon/received_events","type":"User","site_admin":false},"body":"Not much to add here. Just a few model changes and a route.","created_at":"2015-10-21T04:26:02Z","updated_at":"2015-10-21T14:12:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10c0325607de0010e3c0516da49d1500a111ab7e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/pulls/27/commits","review_comments_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/pulls/27/comments","review_comment_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/issues/27/comments","statuses_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/statuses/3f875d8a09c9acbe5757b0f01ac6c4d19d53e959","head":{"label":"cmccammon:attendee","ref":"attendee","sha":"3f875d8a09c9acbe5757b0f01ac6c4d19d53e959","user":{"login":"cmccammon","id":13893602,"avatar_url":"https://avatars.githubusercontent.com/u/13893602?v=3","gravatar_id":"","url":"https://api.github.com/users/cmccammon","html_url":"https://github.com/cmccammon","followers_url":"https://api.github.com/users/cmccammon/followers","following_url":"https://api.github.com/users/cmccammon/following{/other_user}","gists_url":"https://api.github.com/users/cmccammon/gists{/gist_id}","starred_url":"https://api.github.com/users/cmccammon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmccammon/subscriptions","organizations_url":"https://api.github.com/users/cmccammon/orgs","repos_url":"https://api.github.com/users/cmccammon/repos","events_url":"https://api.github.com/users/cmccammon/events{/privacy}","received_events_url":"https://api.github.com/users/cmccammon/received_events","type":"User","site_admin":false},"repo":{"id":44552950,"name":"Schedlr","full_name":"cmccammon/Schedlr","owner":{"login":"cmccammon","id":13893602,"avatar_url":"https://avatars.githubusercontent.com/u/13893602?v=3","gravatar_id":"","url":"https://api.github.com/users/cmccammon","html_url":"https://github.com/cmccammon","followers_url":"https://api.github.com/users/cmccammon/followers","following_url":"https://api.github.com/users/cmccammon/following{/other_user}","gists_url":"https://api.github.com/users/cmccammon/gists{/gist_id}","starred_url":"https://api.github.com/users/cmccammon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmccammon/subscriptions","organizations_url":"https://api.github.com/users/cmccammon/orgs","repos_url":"https://api.github.com/users/cmccammon/repos","events_url":"https://api.github.com/users/cmccammon/events{/privacy}","received_events_url":"https://api.github.com/users/cmccammon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cmccammon/Schedlr","description":"","fork":true,"url":"https://api.github.com/repos/cmccammon/Schedlr","forks_url":"https://api.github.com/repos/cmccammon/Schedlr/forks","keys_url":"https://api.github.com/repos/cmccammon/Schedlr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cmccammon/Schedlr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cmccammon/Schedlr/teams","hooks_url":"https://api.github.com/repos/cmccammon/Schedlr/hooks","issue_events_url":"https://api.github.com/repos/cmccammon/Schedlr/issues/events{/number}","events_url":"https://api.github.com/repos/cmccammon/Schedlr/events","assignees_url":"https://api.github.com/repos/cmccammon/Schedlr/assignees{/user}","branches_url":"https://api.github.com/repos/cmccammon/Schedlr/branches{/branch}","tags_url":"https://api.github.com/repos/cmccammon/Schedlr/tags","blobs_url":"https://api.github.com/repos/cmccammon/Schedlr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cmccammon/Schedlr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cmccammon/Schedlr/git/refs{/sha}","trees_url":"https://api.github.com/repos/cmccammon/Schedlr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cmccammon/Schedlr/statuses/{sha}","languages_url":"https://api.github.com/repos/cmccammon/Schedlr/languages","stargazers_url":"https://api.github.com/repos/cmccammon/Schedlr/stargazers","contributors_url":"https://api.github.com/repos/cmccammon/Schedlr/contributors","subscribers_url":"https://api.github.com/repos/cmccammon/Schedlr/subscribers","subscription_url":"https://api.github.com/repos/cmccammon/Schedlr/subscription","commits_url":"https://api.github.com/repos/cmccammon/Schedlr/commits{/sha}","git_commits_url":"https://api.github.com/repos/cmccammon/Schedlr/git/commits{/sha}","comments_url":"https://api.github.com/repos/cmccammon/Schedlr/comments{/number}","issue_comment_url":"https://api.github.com/repos/cmccammon/Schedlr/issues/comments{/number}","contents_url":"https://api.github.com/repos/cmccammon/Schedlr/contents/{+path}","compare_url":"https://api.github.com/repos/cmccammon/Schedlr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cmccammon/Schedlr/merges","archive_url":"https://api.github.com/repos/cmccammon/Schedlr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cmccammon/Schedlr/downloads","issues_url":"https://api.github.com/repos/cmccammon/Schedlr/issues{/number}","pulls_url":"https://api.github.com/repos/cmccammon/Schedlr/pulls{/number}","milestones_url":"https://api.github.com/repos/cmccammon/Schedlr/milestones{/number}","notifications_url":"https://api.github.com/repos/cmccammon/Schedlr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cmccammon/Schedlr/labels{/name}","releases_url":"https://api.github.com/repos/cmccammon/Schedlr/releases{/id}","created_at":"2015-10-19T17:52:22Z","updated_at":"2015-10-19T17:52:23Z","pushed_at":"2015-10-21T14:10:19Z","git_url":"git://github.com/cmccammon/Schedlr.git","ssh_url":"git@github.com:cmccammon/Schedlr.git","clone_url":"https://github.com/cmccammon/Schedlr.git","svn_url":"https://github.com/cmccammon/Schedlr","homepage":null,"size":194,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tiy-austin-ror:master","ref":"master","sha":"7a0c7d84dc361f01852d9c0315c9edb5b181faa0","user":{"login":"tiy-austin-ror","id":13627537,"avatar_url":"https://avatars.githubusercontent.com/u/13627537?v=3","gravatar_id":"","url":"https://api.github.com/users/tiy-austin-ror","html_url":"https://github.com/tiy-austin-ror","followers_url":"https://api.github.com/users/tiy-austin-ror/followers","following_url":"https://api.github.com/users/tiy-austin-ror/following{/other_user}","gists_url":"https://api.github.com/users/tiy-austin-ror/gists{/gist_id}","starred_url":"https://api.github.com/users/tiy-austin-ror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiy-austin-ror/subscriptions","organizations_url":"https://api.github.com/users/tiy-austin-ror/orgs","repos_url":"https://api.github.com/users/tiy-austin-ror/repos","events_url":"https://api.github.com/users/tiy-austin-ror/events{/privacy}","received_events_url":"https://api.github.com/users/tiy-austin-ror/received_events","type":"Organization","site_admin":false},"repo":{"id":44552582,"name":"Schedlr","full_name":"tiy-austin-ror/Schedlr","owner":{"login":"tiy-austin-ror","id":13627537,"avatar_url":"https://avatars.githubusercontent.com/u/13627537?v=3","gravatar_id":"","url":"https://api.github.com/users/tiy-austin-ror","html_url":"https://github.com/tiy-austin-ror","followers_url":"https://api.github.com/users/tiy-austin-ror/followers","following_url":"https://api.github.com/users/tiy-austin-ror/following{/other_user}","gists_url":"https://api.github.com/users/tiy-austin-ror/gists{/gist_id}","starred_url":"https://api.github.com/users/tiy-austin-ror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiy-austin-ror/subscriptions","organizations_url":"https://api.github.com/users/tiy-austin-ror/orgs","repos_url":"https://api.github.com/users/tiy-austin-ror/repos","events_url":"https://api.github.com/users/tiy-austin-ror/events{/privacy}","received_events_url":"https://api.github.com/users/tiy-austin-ror/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tiy-austin-ror/Schedlr","description":"","fork":false,"url":"https://api.github.com/repos/tiy-austin-ror/Schedlr","forks_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/forks","keys_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/teams","hooks_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/hooks","issue_events_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/issues/events{/number}","events_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/events","assignees_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/assignees{/user}","branches_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/branches{/branch}","tags_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/tags","blobs_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/git/refs{/sha}","trees_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/statuses/{sha}","languages_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/languages","stargazers_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/stargazers","contributors_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/contributors","subscribers_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/subscribers","subscription_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/subscription","commits_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/commits{/sha}","git_commits_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/git/commits{/sha}","comments_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/comments{/number}","issue_comment_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/issues/comments{/number}","contents_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/contents/{+path}","compare_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/merges","archive_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/downloads","issues_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/issues{/number}","pulls_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/pulls{/number}","milestones_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/milestones{/number}","notifications_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/labels{/name}","releases_url":"https://api.github.com/repos/tiy-austin-ror/Schedlr/releases{/id}","created_at":"2015-10-19T17:46:19Z","updated_at":"2015-10-19T17:52:05Z","pushed_at":"2015-10-21T14:10:19Z","git_url":"git://github.com/tiy-austin-ror/Schedlr.git","ssh_url":"git@github.com:tiy-austin-ror/Schedlr.git","clone_url":"https://github.com/tiy-austin-ror/Schedlr.git","svn_url":"https://github.com/tiy-austin-ror/Schedlr","homepage":null,"size":489,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":5,"forks":9,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tiy-austin-ror/Schedlr/pulls/27"},"html":{"href":"https://github.com/tiy-austin-ror/Schedlr/pull/27"},"issue":{"href":"https://api.github.com/repos/tiy-austin-ror/Schedlr/issues/27"},"comments":{"href":"https://api.github.com/repos/tiy-austin-ror/Schedlr/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/tiy-austin-ror/Schedlr/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/tiy-austin-ror/Schedlr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tiy-austin-ror/Schedlr/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/tiy-austin-ror/Schedlr/statuses/3f875d8a09c9acbe5757b0f01ac6c4d19d53e959"}}}}