{"action":"created","comment":{"url":"https://api.github.com/repos/fly49/flashcards/pulls/comments/221722070","pull_request_review_id":160440405,"id":221722070,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTcyMjA3MA==","diff_hunk":"@@ -1,16 +1,24 @@\n class Card < ApplicationRecord\n   belongs_to :user\n+  has_and_belongs_to_many :decks","path":"app/models/card.rb","position":3,"original_position":3,"commit_id":"17bd8205c46e3011a5ce41f27e2cce85d32d17a9","original_commit_id":"17bd8205c46e3011a5ce41f27e2cce85d32d17a9","user":{"login":"Mehonoshin","id":525961,"node_id":"MDQ6VXNlcjUyNTk2MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/525961?v=4","gravatar_id":"","url":"https://api.github.com/users/Mehonoshin","html_url":"https://github.com/Mehonoshin","followers_url":"https://api.github.com/users/Mehonoshin/followers","following_url":"https://api.github.com/users/Mehonoshin/following{/other_user}","gists_url":"https://api.github.com/users/Mehonoshin/gists{/gist_id}","starred_url":"https://api.github.com/users/Mehonoshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mehonoshin/subscriptions","organizations_url":"https://api.github.com/users/Mehonoshin/orgs","repos_url":"https://api.github.com/users/Mehonoshin/repos","events_url":"https://api.github.com/users/Mehonoshin/events{/privacy}","received_events_url":"https://api.github.com/users/Mehonoshin/received_events","type":"User","site_admin":false},"body":"почему не has_many through? она гораздо гибче","created_at":"2018-10-01T19:06:51Z","updated_at":"2018-10-01T19:13:09Z","html_url":"https://github.com/fly49/flashcards/pull/12#discussion_r221722070","pull_request_url":"https://api.github.com/repos/fly49/flashcards/pulls/12","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/fly49/flashcards/pulls/comments/221722070"},"html":{"href":"https://github.com/fly49/flashcards/pull/12#discussion_r221722070"},"pull_request":{"href":"https://api.github.com/repos/fly49/flashcards/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/fly49/flashcards/pulls/12","id":218988621,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4OTg4NjIx","html_url":"https://github.com/fly49/flashcards/pull/12","diff_url":"https://github.com/fly49/flashcards/pull/12.diff","patch_url":"https://github.com/fly49/flashcards/pull/12.patch","issue_url":"https://api.github.com/repos/fly49/flashcards/issues/12","number":12,"state":"open","locked":false,"title":"Create decks associations","user":{"login":"fly49","id":26511002,"node_id":"MDQ6VXNlcjI2NTExMDAy","avatar_url":"https://avatars1.githubusercontent.com/u/26511002?v=4","gravatar_id":"","url":"https://api.github.com/users/fly49","html_url":"https://github.com/fly49","followers_url":"https://api.github.com/users/fly49/followers","following_url":"https://api.github.com/users/fly49/following{/other_user}","gists_url":"https://api.github.com/users/fly49/gists{/gist_id}","starred_url":"https://api.github.com/users/fly49/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fly49/subscriptions","organizations_url":"https://api.github.com/users/fly49/orgs","repos_url":"https://api.github.com/users/fly49/repos","events_url":"https://api.github.com/users/fly49/events{/privacy}","received_events_url":"https://api.github.com/users/fly49/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-28T14:33:28Z","updated_at":"2018-10-01T19:13:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"095e3f2c622f1c38504b9f48668fedaa102d5f27","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fly49/flashcards/pulls/12/commits","review_comments_url":"https://api.github.com/repos/fly49/flashcards/pulls/12/comments","review_comment_url":"https://api.github.com/repos/fly49/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fly49/flashcards/issues/12/comments","statuses_url":"https://api.github.com/repos/fly49/flashcards/statuses/17bd8205c46e3011a5ce41f27e2cce85d32d17a9","head":{"label":"fly49:decks","ref":"decks","sha":"17bd8205c46e3011a5ce41f27e2cce85d32d17a9","user":{"login":"fly49","id":26511002,"node_id":"MDQ6VXNlcjI2NTExMDAy","avatar_url":"https://avatars1.githubusercontent.com/u/26511002?v=4","gravatar_id":"","url":"https://api.github.com/users/fly49","html_url":"https://github.com/fly49","followers_url":"https://api.github.com/users/fly49/followers","following_url":"https://api.github.com/users/fly49/following{/other_user}","gists_url":"https://api.github.com/users/fly49/gists{/gist_id}","starred_url":"https://api.github.com/users/fly49/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fly49/subscriptions","organizations_url":"https://api.github.com/users/fly49/orgs","repos_url":"https://api.github.com/users/fly49/repos","events_url":"https://api.github.com/users/fly49/events{/privacy}","received_events_url":"https://api.github.com/users/fly49/received_events","type":"User","site_admin":false},"repo":{"id":147531465,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc1MzE0NjU=","name":"flashcards","full_name":"fly49/flashcards","private":false,"owner":{"login":"fly49","id":26511002,"node_id":"MDQ6VXNlcjI2NTExMDAy","avatar_url":"https://avatars1.githubusercontent.com/u/26511002?v=4","gravatar_id":"","url":"https://api.github.com/users/fly49","html_url":"https://github.com/fly49","followers_url":"https://api.github.com/users/fly49/followers","following_url":"https://api.github.com/users/fly49/following{/other_user}","gists_url":"https://api.github.com/users/fly49/gists{/gist_id}","starred_url":"https://api.github.com/users/fly49/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fly49/subscriptions","organizations_url":"https://api.github.com/users/fly49/orgs","repos_url":"https://api.github.com/users/fly49/repos","events_url":"https://api.github.com/users/fly49/events{/privacy}","received_events_url":"https://api.github.com/users/fly49/received_events","type":"User","site_admin":false},"html_url":"https://github.com/fly49/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/fly49/flashcards","forks_url":"https://api.github.com/repos/fly49/flashcards/forks","keys_url":"https://api.github.com/repos/fly49/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fly49/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fly49/flashcards/teams","hooks_url":"https://api.github.com/repos/fly49/flashcards/hooks","issue_events_url":"https://api.github.com/repos/fly49/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/fly49/flashcards/events","assignees_url":"https://api.github.com/repos/fly49/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/fly49/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/fly49/flashcards/tags","blobs_url":"https://api.github.com/repos/fly49/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fly49/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fly49/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/fly49/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fly49/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/fly49/flashcards/languages","stargazers_url":"https://api.github.com/repos/fly49/flashcards/stargazers","contributors_url":"https://api.github.com/repos/fly49/flashcards/contributors","subscribers_url":"https://api.github.com/repos/fly49/flashcards/subscribers","subscription_url":"https://api.github.com/repos/fly49/flashcards/subscription","commits_url":"https://api.github.com/repos/fly49/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/fly49/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/fly49/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/fly49/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/fly49/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/fly49/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fly49/flashcards/merges","archive_url":"https://api.github.com/repos/fly49/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fly49/flashcards/downloads","issues_url":"https://api.github.com/repos/fly49/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/fly49/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/fly49/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/fly49/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fly49/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/fly49/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/fly49/flashcards/deployments","created_at":"2018-09-05T14:29:02Z","updated_at":"2018-09-27T14:13:51Z","pushed_at":"2018-10-01T18:29:12Z","git_url":"git://github.com/fly49/flashcards.git","ssh_url":"git@github.com:fly49/flashcards.git","clone_url":"https://github.com/fly49/flashcards.git","svn_url":"https://github.com/fly49/flashcards","homepage":null,"size":812,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"fly49:master","ref":"master","sha":"cd23e00432778847a274e17b2098a82ddda4479b","user":{"login":"fly49","id":26511002,"node_id":"MDQ6VXNlcjI2NTExMDAy","avatar_url":"https://avatars1.githubusercontent.com/u/26511002?v=4","gravatar_id":"","url":"https://api.github.com/users/fly49","html_url":"https://github.com/fly49","followers_url":"https://api.github.com/users/fly49/followers","following_url":"https://api.github.com/users/fly49/following{/other_user}","gists_url":"https://api.github.com/users/fly49/gists{/gist_id}","starred_url":"https://api.github.com/users/fly49/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fly49/subscriptions","organizations_url":"https://api.github.com/users/fly49/orgs","repos_url":"https://api.github.com/users/fly49/repos","events_url":"https://api.github.com/users/fly49/events{/privacy}","received_events_url":"https://api.github.com/users/fly49/received_events","type":"User","site_admin":false},"repo":{"id":147531465,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc1MzE0NjU=","name":"flashcards","full_name":"fly49/flashcards","private":false,"owner":{"login":"fly49","id":26511002,"node_id":"MDQ6VXNlcjI2NTExMDAy","avatar_url":"https://avatars1.githubusercontent.com/u/26511002?v=4","gravatar_id":"","url":"https://api.github.com/users/fly49","html_url":"https://github.com/fly49","followers_url":"https://api.github.com/users/fly49/followers","following_url":"https://api.github.com/users/fly49/following{/other_user}","gists_url":"https://api.github.com/users/fly49/gists{/gist_id}","starred_url":"https://api.github.com/users/fly49/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fly49/subscriptions","organizations_url":"https://api.github.com/users/fly49/orgs","repos_url":"https://api.github.com/users/fly49/repos","events_url":"https://api.github.com/users/fly49/events{/privacy}","received_events_url":"https://api.github.com/users/fly49/received_events","type":"User","site_admin":false},"html_url":"https://github.com/fly49/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/fly49/flashcards","forks_url":"https://api.github.com/repos/fly49/flashcards/forks","keys_url":"https://api.github.com/repos/fly49/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fly49/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fly49/flashcards/teams","hooks_url":"https://api.github.com/repos/fly49/flashcards/hooks","issue_events_url":"https://api.github.com/repos/fly49/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/fly49/flashcards/events","assignees_url":"https://api.github.com/repos/fly49/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/fly49/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/fly49/flashcards/tags","blobs_url":"https://api.github.com/repos/fly49/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fly49/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fly49/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/fly49/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fly49/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/fly49/flashcards/languages","stargazers_url":"https://api.github.com/repos/fly49/flashcards/stargazers","contributors_url":"https://api.github.com/repos/fly49/flashcards/contributors","subscribers_url":"https://api.github.com/repos/fly49/flashcards/subscribers","subscription_url":"https://api.github.com/repos/fly49/flashcards/subscription","commits_url":"https://api.github.com/repos/fly49/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/fly49/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/fly49/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/fly49/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/fly49/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/fly49/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fly49/flashcards/merges","archive_url":"https://api.github.com/repos/fly49/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fly49/flashcards/downloads","issues_url":"https://api.github.com/repos/fly49/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/fly49/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/fly49/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/fly49/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fly49/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/fly49/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/fly49/flashcards/deployments","created_at":"2018-09-05T14:29:02Z","updated_at":"2018-09-27T14:13:51Z","pushed_at":"2018-10-01T18:29:12Z","git_url":"git://github.com/fly49/flashcards.git","ssh_url":"git@github.com:fly49/flashcards.git","clone_url":"https://github.com/fly49/flashcards.git","svn_url":"https://github.com/fly49/flashcards","homepage":null,"size":812,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fly49/flashcards/pulls/12"},"html":{"href":"https://github.com/fly49/flashcards/pull/12"},"issue":{"href":"https://api.github.com/repos/fly49/flashcards/issues/12"},"comments":{"href":"https://api.github.com/repos/fly49/flashcards/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/fly49/flashcards/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/fly49/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fly49/flashcards/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/fly49/flashcards/statuses/17bd8205c46e3011a5ce41f27e2cce85d32d17a9"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Mehonoshin"}}