{"action":"created","comment":{"url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/comments/28119575","id":28119575,"diff_hunk":"@@ -0,0 +1,69 @@\n+***************REDDIT ASSOCIATIONS***********\n+\n+users\n+has_many :articles\n+has_many :comments\n+has_many :upvotes\n+  id\n+  name\n+  email\n+\n+articles\n+belongs_to :users\n+has_many :comments\n+\tuser_id\n+\ttitle\n+\tcontent\n+\tcomments\n+\tshare\n+\n+comments\n+belongs_to :users\n+belongs_to :articles\n+\tuser_id\n+\tartile\n+\tcontent\n+\n+upvotes\n+belongs_to :users\n+\tuser_id\n+\n+******************AMAZON*******************\n+\n+users\n+has_one :cart\n+has_many_and_belongs_to_many :products\n+has_many :reviews\n+\tid\n+\tname\n+\temail\n+\taddress\n+\n+\n+products\n+has_and_belongs_to_many :users\n+has_and_belongs_to_many :carts\n+has_many :reviews\n+\ttitle\n+\tdescription\n+\n+reviews\n+belongs_to :users\n+belongs_to :products\n+\tuser_id\n+\ttitle\n+\tcontent\n+\tcreated_at\n+\n+cart\n+belongs_to :users\n+has_and_belongs_to_many :products","path":"MikelBlake-mikelblake/AssociationsHW/AssociationsHW.md","position":60,"original_position":60,"commit_id":"f94915eb1cd01e4042bd288820c01e8e4b2206d1","original_commit_id":"f94915eb1cd01e4042bd288820c01e8e4b2206d1","user":{"login":"dladowitz","id":1074877,"avatar_url":"https://avatars.githubusercontent.com/u/1074877?v=3","gravatar_id":"","url":"https://api.github.com/users/dladowitz","html_url":"https://github.com/dladowitz","followers_url":"https://api.github.com/users/dladowitz/followers","following_url":"https://api.github.com/users/dladowitz/following{/other_user}","gists_url":"https://api.github.com/users/dladowitz/gists{/gist_id}","starred_url":"https://api.github.com/users/dladowitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dladowitz/subscriptions","organizations_url":"https://api.github.com/users/dladowitz/orgs","repos_url":"https://api.github.com/users/dladowitz/repos","events_url":"https://api.github.com/users/dladowitz/events{/privacy}","received_events_url":"https://api.github.com/users/dladowitz/received_events","type":"User","site_admin":false},"body":"has_many :products","created_at":"2015-04-10T02:40:13Z","updated_at":"2015-04-10T02:40:13Z","html_url":"https://github.com/ga-students/bewd_sf_8_homework/pull/150#discussion_r28119575","pull_request_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/150","_links":{"self":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/comments/28119575"},"html":{"href":"https://github.com/ga-students/bewd_sf_8_homework/pull/150#discussion_r28119575"},"pull_request":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/150"}}},"pull_request":{"url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/150","id":32925612,"html_url":"https://github.com/ga-students/bewd_sf_8_homework/pull/150","diff_url":"https://github.com/ga-students/bewd_sf_8_homework/pull/150.diff","patch_url":"https://github.com/ga-students/bewd_sf_8_homework/pull/150.patch","issue_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/150","number":150,"state":"open","locked":false,"title":"Adding Associations HW","user":{"login":"mikelblake","id":7333644,"avatar_url":"https://avatars.githubusercontent.com/u/7333644?v=3","gravatar_id":"","url":"https://api.github.com/users/mikelblake","html_url":"https://github.com/mikelblake","followers_url":"https://api.github.com/users/mikelblake/followers","following_url":"https://api.github.com/users/mikelblake/following{/other_user}","gists_url":"https://api.github.com/users/mikelblake/gists{/gist_id}","starred_url":"https://api.github.com/users/mikelblake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikelblake/subscriptions","organizations_url":"https://api.github.com/users/mikelblake/orgs","repos_url":"https://api.github.com/users/mikelblake/repos","events_url":"https://api.github.com/users/mikelblake/events{/privacy}","received_events_url":"https://api.github.com/users/mikelblake/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-09T05:10:24Z","updated_at":"2015-04-10T02:40:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af159c3bbd955303747f612d708178f9322776b8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/150/commits","review_comments_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/150/comments","review_comment_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/150/comments","statuses_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/statuses/f94915eb1cd01e4042bd288820c01e8e4b2206d1","head":{"label":"mikelblake:master","ref":"master","sha":"f94915eb1cd01e4042bd288820c01e8e4b2206d1","user":{"login":"mikelblake","id":7333644,"avatar_url":"https://avatars.githubusercontent.com/u/7333644?v=3","gravatar_id":"","url":"https://api.github.com/users/mikelblake","html_url":"https://github.com/mikelblake","followers_url":"https://api.github.com/users/mikelblake/followers","following_url":"https://api.github.com/users/mikelblake/following{/other_user}","gists_url":"https://api.github.com/users/mikelblake/gists{/gist_id}","starred_url":"https://api.github.com/users/mikelblake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikelblake/subscriptions","organizations_url":"https://api.github.com/users/mikelblake/orgs","repos_url":"https://api.github.com/users/mikelblake/repos","events_url":"https://api.github.com/users/mikelblake/events{/privacy}","received_events_url":"https://api.github.com/users/mikelblake/received_events","type":"User","site_admin":false},"repo":{"id":31295308,"name":"bewd_sf_8_homework","full_name":"mikelblake/bewd_sf_8_homework","owner":{"login":"mikelblake","id":7333644,"avatar_url":"https://avatars.githubusercontent.com/u/7333644?v=3","gravatar_id":"","url":"https://api.github.com/users/mikelblake","html_url":"https://github.com/mikelblake","followers_url":"https://api.github.com/users/mikelblake/followers","following_url":"https://api.github.com/users/mikelblake/following{/other_user}","gists_url":"https://api.github.com/users/mikelblake/gists{/gist_id}","starred_url":"https://api.github.com/users/mikelblake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikelblake/subscriptions","organizations_url":"https://api.github.com/users/mikelblake/orgs","repos_url":"https://api.github.com/users/mikelblake/repos","events_url":"https://api.github.com/users/mikelblake/events{/privacy}","received_events_url":"https://api.github.com/users/mikelblake/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikelblake/bewd_sf_8_homework","description":"","fork":true,"url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework","forks_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/forks","keys_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/teams","hooks_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/hooks","issue_events_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/issues/events{/number}","events_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/events","assignees_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/assignees{/user}","branches_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/branches{/branch}","tags_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/tags","blobs_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/statuses/{sha}","languages_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/languages","stargazers_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/stargazers","contributors_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/contributors","subscribers_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/subscribers","subscription_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/subscription","commits_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/contents/{+path}","compare_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/merges","archive_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/downloads","issues_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/issues{/number}","pulls_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/pulls{/number}","milestones_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/milestones{/number}","notifications_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/labels{/name}","releases_url":"https://api.github.com/repos/mikelblake/bewd_sf_8_homework/releases{/id}","created_at":"2015-02-25T03:28:11Z","updated_at":"2015-04-09T05:09:51Z","pushed_at":"2015-04-09T05:09:51Z","git_url":"git://github.com/mikelblake/bewd_sf_8_homework.git","ssh_url":"git@github.com:mikelblake/bewd_sf_8_homework.git","clone_url":"https://github.com/mikelblake/bewd_sf_8_homework.git","svn_url":"https://github.com/mikelblake/bewd_sf_8_homework","homepage":null,"size":226,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ga-students:master","ref":"master","sha":"7152614574a4ace0fbc374eef1091be7a5bd4ab0","user":{"login":"ga-students","id":5048067,"avatar_url":"https://avatars.githubusercontent.com/u/5048067?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-students","html_url":"https://github.com/ga-students","followers_url":"https://api.github.com/users/ga-students/followers","following_url":"https://api.github.com/users/ga-students/following{/other_user}","gists_url":"https://api.github.com/users/ga-students/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-students/subscriptions","organizations_url":"https://api.github.com/users/ga-students/orgs","repos_url":"https://api.github.com/users/ga-students/repos","events_url":"https://api.github.com/users/ga-students/events{/privacy}","received_events_url":"https://api.github.com/users/ga-students/received_events","type":"Organization","site_admin":false},"repo":{"id":31043896,"name":"bewd_sf_8_homework","full_name":"ga-students/bewd_sf_8_homework","owner":{"login":"ga-students","id":5048067,"avatar_url":"https://avatars.githubusercontent.com/u/5048067?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-students","html_url":"https://github.com/ga-students","followers_url":"https://api.github.com/users/ga-students/followers","following_url":"https://api.github.com/users/ga-students/following{/other_user}","gists_url":"https://api.github.com/users/ga-students/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-students/subscriptions","organizations_url":"https://api.github.com/users/ga-students/orgs","repos_url":"https://api.github.com/users/ga-students/repos","events_url":"https://api.github.com/users/ga-students/events{/privacy}","received_events_url":"https://api.github.com/users/ga-students/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-students/bewd_sf_8_homework","description":"","fork":false,"url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework","forks_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/forks","keys_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/teams","hooks_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/hooks","issue_events_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/events{/number}","events_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/events","assignees_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/assignees{/user}","branches_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/branches{/branch}","tags_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/tags","blobs_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/languages","stargazers_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/stargazers","contributors_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/contributors","subscribers_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/subscribers","subscription_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/subscription","commits_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/contents/{+path}","compare_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/merges","archive_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/downloads","issues_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues{/number}","pulls_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/labels{/name}","releases_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/releases{/id}","created_at":"2015-02-20T00:10:49Z","updated_at":"2015-04-10T02:17:12Z","pushed_at":"2015-04-10T02:17:12Z","git_url":"git://github.com/ga-students/bewd_sf_8_homework.git","ssh_url":"git@github.com:ga-students/bewd_sf_8_homework.git","clone_url":"https://github.com/ga-students/bewd_sf_8_homework.git","svn_url":"https://github.com/ga-students/bewd_sf_8_homework","homepage":null,"size":31217,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":6,"forks":31,"open_issues":6,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/150"},"html":{"href":"https://github.com/ga-students/bewd_sf_8_homework/pull/150"},"issue":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/150"},"comments":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/150/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/150/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/150/commits"},"statuses":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/statuses/f94915eb1cd01e4042bd288820c01e8e4b2206d1"}}}}