{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments/83935996","pull_request_review_id":4746452,"id":83935996,"diff_hunk":"@@ -1,37 +1,56 @@\n ## Week Two - Module 2 Recap\n \n-Fork this respository. Answer the questions to the best of your ability. Try to answer them with limited amount of external research. These questions cover the majority of what we've learned this week (which is a TON - YOU are a web developer!!!). \n+Fork this respository. Answer the questions to the best of your ability. Try to answer them with limited amount of external research. These questions cover the majority of what we've learned this week (which is a TON - YOU are a web developer!!!).\n \n-Note: When you're done, submit a PR. \n+Note: When you're done, submit a PR.\n \n 1. At a high level, what is ActiveRecord? What does it do/allow you to do?\n+It is a DSL that allows you to treat tables within a SQL database as Ruby objects.\n 2. What kind of methods are `belongs_to`, and `has_many`? (i.e. class or instance) Give an example.\n+Class methods. A horse belongs_to a stable, and a stable has_many horses.\n 3. What do they allow you to do?\n+Create associations between two tables.\n 4. What's the difference between agile workflow and waterfall method?\n+Waterfall is sequential--planning, designing, creating, testing. You know the outcome you want beforehand. Agile is incremental. You tackle a project in iterations, for instance. You don't typically know what the outcome until you get there.\n 5. What is the difference between `#new` and `#create`?\n+These are methods. #new usually takes you to a form to create a new thing, whereas #create is the method called when pressing a submit button on said form.\n 6. At a basic level, what does cURL allow you to do?\n+Send/receive information to/from a server.\n 7. In a database that's holding students and teachers, what will be the relationship between students and teachers? Draw the schema diagram.\n+I understand that a join table is needed for this many-to-many relationship, but I don't fully understand why. Nevertheless, students has_many students_teachers and has_many :teachers, through: :students_teachers. Students_teachers belongs_to :students and belongs_to :teachers. Teachers has_many students_teachers and has_many students, through: :students_teachers.","path":"module-2/backend/week_two.md","position":22,"original_position":22,"commit_id":"8fd6d9b986f52e5e0bc797b096c7231e7c05b2db","original_commit_id":"8fd6d9b986f52e5e0bc797b096c7231e7c05b2db","user":{"login":"case-eee","id":6503717,"avatar_url":"https://avatars.githubusercontent.com/u/6503717?v=3","gravatar_id":"","url":"https://api.github.com/users/case-eee","html_url":"https://github.com/case-eee","followers_url":"https://api.github.com/users/case-eee/followers","following_url":"https://api.github.com/users/case-eee/following{/other_user}","gists_url":"https://api.github.com/users/case-eee/gists{/gist_id}","starred_url":"https://api.github.com/users/case-eee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/case-eee/subscriptions","organizations_url":"https://api.github.com/users/case-eee/orgs","repos_url":"https://api.github.com/users/case-eee/repos","events_url":"https://api.github.com/users/case-eee/events{/privacy}","received_events_url":"https://api.github.com/users/case-eee/received_events","type":"User","site_admin":false},"body":"it's necessary to track the relationships between the two tables. if we didn't have it, we wouldn't be able to track the `many-to-many` piece","created_at":"2016-10-18T19:50:23Z","updated_at":"2016-10-18T19:50:23Z","html_url":"https://github.com/turingschool/checks-for-understanding/pull/53#discussion_r83935996","pull_request_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments/83935996"},"html":{"href":"https://github.com/turingschool/checks-for-understanding/pull/53#discussion_r83935996"},"pull_request":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/53","id":89744097,"html_url":"https://github.com/turingschool/checks-for-understanding/pull/53","diff_url":"https://github.com/turingschool/checks-for-understanding/pull/53.diff","patch_url":"https://github.com/turingschool/checks-for-understanding/pull/53.patch","issue_url":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/53","number":53,"state":"open","locked":false,"title":"Update week_two.md","user":{"login":"bradgreen3","id":17207274,"avatar_url":"https://avatars.githubusercontent.com/u/17207274?v=3","gravatar_id":"","url":"https://api.github.com/users/bradgreen3","html_url":"https://github.com/bradgreen3","followers_url":"https://api.github.com/users/bradgreen3/followers","following_url":"https://api.github.com/users/bradgreen3/following{/other_user}","gists_url":"https://api.github.com/users/bradgreen3/gists{/gist_id}","starred_url":"https://api.github.com/users/bradgreen3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradgreen3/subscriptions","organizations_url":"https://api.github.com/users/bradgreen3/orgs","repos_url":"https://api.github.com/users/bradgreen3/repos","events_url":"https://api.github.com/users/bradgreen3/events{/privacy}","received_events_url":"https://api.github.com/users/bradgreen3/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-18T04:12:08Z","updated_at":"2016-10-18T19:52:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e836478bd50672eab783afacc615c5ec21a5f6c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/53/commits","review_comments_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/53/comments","review_comment_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments{/number}","comments_url":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/53/comments","statuses_url":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/8fd6d9b986f52e5e0bc797b096c7231e7c05b2db","head":{"label":"bradgreen3:patch-1","ref":"patch-1","sha":"8fd6d9b986f52e5e0bc797b096c7231e7c05b2db","user":{"login":"bradgreen3","id":17207274,"avatar_url":"https://avatars.githubusercontent.com/u/17207274?v=3","gravatar_id":"","url":"https://api.github.com/users/bradgreen3","html_url":"https://github.com/bradgreen3","followers_url":"https://api.github.com/users/bradgreen3/followers","following_url":"https://api.github.com/users/bradgreen3/following{/other_user}","gists_url":"https://api.github.com/users/bradgreen3/gists{/gist_id}","starred_url":"https://api.github.com/users/bradgreen3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradgreen3/subscriptions","organizations_url":"https://api.github.com/users/bradgreen3/orgs","repos_url":"https://api.github.com/users/bradgreen3/repos","events_url":"https://api.github.com/users/bradgreen3/events{/privacy}","received_events_url":"https://api.github.com/users/bradgreen3/received_events","type":"User","site_admin":false},"repo":{"id":70414570,"name":"checks-for-understanding","full_name":"bradgreen3/checks-for-understanding","owner":{"login":"bradgreen3","id":17207274,"avatar_url":"https://avatars.githubusercontent.com/u/17207274?v=3","gravatar_id":"","url":"https://api.github.com/users/bradgreen3","html_url":"https://github.com/bradgreen3","followers_url":"https://api.github.com/users/bradgreen3/followers","following_url":"https://api.github.com/users/bradgreen3/following{/other_user}","gists_url":"https://api.github.com/users/bradgreen3/gists{/gist_id}","starred_url":"https://api.github.com/users/bradgreen3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradgreen3/subscriptions","organizations_url":"https://api.github.com/users/bradgreen3/orgs","repos_url":"https://api.github.com/users/bradgreen3/repos","events_url":"https://api.github.com/users/bradgreen3/events{/privacy}","received_events_url":"https://api.github.com/users/bradgreen3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bradgreen3/checks-for-understanding","description":null,"fork":true,"url":"https://api.github.com/repos/bradgreen3/checks-for-understanding","forks_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/forks","keys_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/teams","hooks_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/hooks","issue_events_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/issues/events{/number}","events_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/events","assignees_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/assignees{/user}","branches_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/branches{/branch}","tags_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/tags","blobs_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/git/refs{/sha}","trees_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/statuses/{sha}","languages_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/languages","stargazers_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/stargazers","contributors_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/contributors","subscribers_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/subscribers","subscription_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/subscription","commits_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/commits{/sha}","git_commits_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/git/commits{/sha}","comments_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/comments{/number}","issue_comment_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/issues/comments{/number}","contents_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/contents/{+path}","compare_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/merges","archive_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/downloads","issues_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/issues{/number}","pulls_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/pulls{/number}","milestones_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/milestones{/number}","notifications_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/labels{/name}","releases_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/releases{/id}","deployments_url":"https://api.github.com/repos/bradgreen3/checks-for-understanding/deployments","created_at":"2016-10-09T16:07:38Z","updated_at":"2016-09-09T16:52:56Z","pushed_at":"2016-10-18T04:12:01Z","git_url":"git://github.com/bradgreen3/checks-for-understanding.git","ssh_url":"git@github.com:bradgreen3/checks-for-understanding.git","clone_url":"https://github.com/bradgreen3/checks-for-understanding.git","svn_url":"https://github.com/bradgreen3/checks-for-understanding","homepage":null,"size":18,"stargazers_count":0,"watchers_count":0,"language":null,"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":"turingschool:master","ref":"master","sha":"3c7c692541f6d6944f521f10bacc5f73a0f69141","user":{"login":"turingschool","id":7934292,"avatar_url":"https://avatars.githubusercontent.com/u/7934292?v=3","gravatar_id":"","url":"https://api.github.com/users/turingschool","html_url":"https://github.com/turingschool","followers_url":"https://api.github.com/users/turingschool/followers","following_url":"https://api.github.com/users/turingschool/following{/other_user}","gists_url":"https://api.github.com/users/turingschool/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool/subscriptions","organizations_url":"https://api.github.com/users/turingschool/orgs","repos_url":"https://api.github.com/users/turingschool/repos","events_url":"https://api.github.com/users/turingschool/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool/received_events","type":"Organization","site_admin":false},"repo":{"id":66577733,"name":"checks-for-understanding","full_name":"turingschool/checks-for-understanding","owner":{"login":"turingschool","id":7934292,"avatar_url":"https://avatars.githubusercontent.com/u/7934292?v=3","gravatar_id":"","url":"https://api.github.com/users/turingschool","html_url":"https://github.com/turingschool","followers_url":"https://api.github.com/users/turingschool/followers","following_url":"https://api.github.com/users/turingschool/following{/other_user}","gists_url":"https://api.github.com/users/turingschool/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool/subscriptions","organizations_url":"https://api.github.com/users/turingschool/orgs","repos_url":"https://api.github.com/users/turingschool/repos","events_url":"https://api.github.com/users/turingschool/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/turingschool/checks-for-understanding","description":null,"fork":false,"url":"https://api.github.com/repos/turingschool/checks-for-understanding","forks_url":"https://api.github.com/repos/turingschool/checks-for-understanding/forks","keys_url":"https://api.github.com/repos/turingschool/checks-for-understanding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/turingschool/checks-for-understanding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/turingschool/checks-for-understanding/teams","hooks_url":"https://api.github.com/repos/turingschool/checks-for-understanding/hooks","issue_events_url":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/events{/number}","events_url":"https://api.github.com/repos/turingschool/checks-for-understanding/events","assignees_url":"https://api.github.com/repos/turingschool/checks-for-understanding/assignees{/user}","branches_url":"https://api.github.com/repos/turingschool/checks-for-understanding/branches{/branch}","tags_url":"https://api.github.com/repos/turingschool/checks-for-understanding/tags","blobs_url":"https://api.github.com/repos/turingschool/checks-for-understanding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/turingschool/checks-for-understanding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/turingschool/checks-for-understanding/git/refs{/sha}","trees_url":"https://api.github.com/repos/turingschool/checks-for-understanding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/{sha}","languages_url":"https://api.github.com/repos/turingschool/checks-for-understanding/languages","stargazers_url":"https://api.github.com/repos/turingschool/checks-for-understanding/stargazers","contributors_url":"https://api.github.com/repos/turingschool/checks-for-understanding/contributors","subscribers_url":"https://api.github.com/repos/turingschool/checks-for-understanding/subscribers","subscription_url":"https://api.github.com/repos/turingschool/checks-for-understanding/subscription","commits_url":"https://api.github.com/repos/turingschool/checks-for-understanding/commits{/sha}","git_commits_url":"https://api.github.com/repos/turingschool/checks-for-understanding/git/commits{/sha}","comments_url":"https://api.github.com/repos/turingschool/checks-for-understanding/comments{/number}","issue_comment_url":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/comments{/number}","contents_url":"https://api.github.com/repos/turingschool/checks-for-understanding/contents/{+path}","compare_url":"https://api.github.com/repos/turingschool/checks-for-understanding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/turingschool/checks-for-understanding/merges","archive_url":"https://api.github.com/repos/turingschool/checks-for-understanding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/turingschool/checks-for-understanding/downloads","issues_url":"https://api.github.com/repos/turingschool/checks-for-understanding/issues{/number}","pulls_url":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls{/number}","milestones_url":"https://api.github.com/repos/turingschool/checks-for-understanding/milestones{/number}","notifications_url":"https://api.github.com/repos/turingschool/checks-for-understanding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/turingschool/checks-for-understanding/labels{/name}","releases_url":"https://api.github.com/repos/turingschool/checks-for-understanding/releases{/id}","deployments_url":"https://api.github.com/repos/turingschool/checks-for-understanding/deployments","created_at":"2016-08-25T17:10:28Z","updated_at":"2016-09-09T16:52:56Z","pushed_at":"2016-10-18T04:12:08Z","git_url":"git://github.com/turingschool/checks-for-understanding.git","ssh_url":"git@github.com:turingschool/checks-for-understanding.git","clone_url":"https://github.com/turingschool/checks-for-understanding.git","svn_url":"https://github.com/turingschool/checks-for-understanding","homepage":null,"size":1765,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":7,"forks":32,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/53"},"html":{"href":"https://github.com/turingschool/checks-for-understanding/pull/53"},"issue":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/53"},"comments":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool/checks-for-understanding/statuses/8fd6d9b986f52e5e0bc797b096c7231e7c05b2db"}}}}
{"actor":{"display_login":"case-eee"}}