{"action":"created","issue":{"url":"https://api.github.com/repos/tiy-austin-ror/SpaceBook/issues/73","repository_url":"https://api.github.com/repos/tiy-austin-ror/SpaceBook","labels_url":"https://api.github.com/repos/tiy-austin-ror/SpaceBook/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/tiy-austin-ror/SpaceBook/issues/73/comments","events_url":"https://api.github.com/repos/tiy-austin-ror/SpaceBook/issues/73/events","html_url":"https://github.com/tiy-austin-ror/SpaceBook/pull/73","id":151246851,"number":73,"title":"add company model","user":{"login":"vpatel90","id":6004526,"avatar_url":"https://avatars.githubusercontent.com/u/6004526?v=3","gravatar_id":"","url":"https://api.github.com/users/vpatel90","html_url":"https://github.com/vpatel90","followers_url":"https://api.github.com/users/vpatel90/followers","following_url":"https://api.github.com/users/vpatel90/following{/other_user}","gists_url":"https://api.github.com/users/vpatel90/gists{/gist_id}","starred_url":"https://api.github.com/users/vpatel90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpatel90/subscriptions","organizations_url":"https://api.github.com/users/vpatel90/orgs","repos_url":"https://api.github.com/users/vpatel90/repos","events_url":"https://api.github.com/users/vpatel90/events{/privacy}","received_events_url":"https://api.github.com/users/vpatel90/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-26T21:45:47Z","updated_at":"2016-04-27T03:44:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tiy-austin-ror/SpaceBook/pulls/73","html_url":"https://github.com/tiy-austin-ror/SpaceBook/pull/73","diff_url":"https://github.com/tiy-austin-ror/SpaceBook/pull/73.diff","patch_url":"https://github.com/tiy-austin-ror/SpaceBook/pull/73.patch"},"body":"I've touched a lot of files in this pr.\r\n- Added company model and migrations\r\n- Companies currently only have a Name column\r\n- Users belong to company\r\n- Campuses belong to company\r\n- I've updated the seed file\r\n-Seed file will create 2 companies. Google and Valve\r\n- googles admin is 'admin@spacebook.com', and valve is 'vadmin@spacebook.com'\r\n- googles nonadmin is 'not_admin@spacebook.com', and valve is 'vnot_admin@spacebook.com'\r\n- I also changed the integration test steps to include company creation\r\n\r\n- In application controller I added an authorization for company. So Users can only look at their own company campuses/rooms/events/users etc.\r\n\r\n- I modified the navbar to display the company name if a user is logged in"},"comment":{"url":"https://api.github.com/repos/tiy-austin-ror/SpaceBook/issues/comments/214962373","html_url":"https://github.com/tiy-austin-ror/SpaceBook/pull/73#issuecomment-214962373","issue_url":"https://api.github.com/repos/tiy-austin-ror/SpaceBook/issues/73","id":214962373,"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},"created_at":"2016-04-27T03:44:21Z","updated_at":"2016-04-27T03:44:21Z","body":"Looks good, after fixing up a few of those suggestions and ignoring my silly questions, this gets a thumbs up from me."}}