{"action":"created","comment":{"url":"https://api.github.com/repos/stokwell/qna-postgresql/pulls/comments/89202204","pull_request_review_id":9749499,"id":89202204,"diff_hunk":"@@ -0,0 +1,9 @@\n+class User < ActiveRecord::Base\n+  # Include default devise modules. Others available are:\n+  # :confirmable, :lockable, :timeoutable and :omniauthable\n+  devise :database_authenticatable, :registerable,\n+         :recoverable, :rememberable, :trackable, :validatable\n+\n+  has_many :questions","path":"app/models/user.rb","position":7,"original_position":7,"commit_id":"0864935424a0ce62ff4d0a5b6fca56d26dc380f6","original_commit_id":"0864935424a0ce62ff4d0a5b6fca56d26dc380f6","user":{"login":"palkan","id":1516722,"avatar_url":"https://avatars.githubusercontent.com/u/1516722?v=3","gravatar_id":"","url":"https://api.github.com/users/palkan","html_url":"https://github.com/palkan","followers_url":"https://api.github.com/users/palkan/followers","following_url":"https://api.github.com/users/palkan/following{/other_user}","gists_url":"https://api.github.com/users/palkan/gists{/gist_id}","starred_url":"https://api.github.com/users/palkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palkan/subscriptions","organizations_url":"https://api.github.com/users/palkan/orgs","repos_url":"https://api.github.com/users/palkan/repos","events_url":"https://api.github.com/users/palkan/events{/privacy}","received_events_url":"https://api.github.com/users/palkan/received_events","type":"User","site_admin":false},"body":"Зависимость? Получается, что пользователь для вопроса/ответа обязателен, тогда при удалении пользователя останутся невалидные вопросы/ответы.","created_at":"2016-11-22T20:21:18Z","updated_at":"2016-11-22T20:21:18Z","html_url":"https://github.com/stokwell/qna-postgresql/pull/3#discussion_r89202204","pull_request_url":"https://api.github.com/repos/stokwell/qna-postgresql/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/stokwell/qna-postgresql/pulls/comments/89202204"},"html":{"href":"https://github.com/stokwell/qna-postgresql/pull/3#discussion_r89202204"},"pull_request":{"href":"https://api.github.com/repos/stokwell/qna-postgresql/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/stokwell/qna-postgresql/pulls/3","id":94840272,"html_url":"https://github.com/stokwell/qna-postgresql/pull/3","diff_url":"https://github.com/stokwell/qna-postgresql/pull/3.diff","patch_url":"https://github.com/stokwell/qna-postgresql/pull/3.patch","issue_url":"https://api.github.com/repos/stokwell/qna-postgresql/issues/3","number":3,"state":"closed","locked":false,"title":"Acceptance tests","user":{"login":"stokwell","id":19650764,"avatar_url":"https://avatars.githubusercontent.com/u/19650764?v=3","gravatar_id":"","url":"https://api.github.com/users/stokwell","html_url":"https://github.com/stokwell","followers_url":"https://api.github.com/users/stokwell/followers","following_url":"https://api.github.com/users/stokwell/following{/other_user}","gists_url":"https://api.github.com/users/stokwell/gists{/gist_id}","starred_url":"https://api.github.com/users/stokwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stokwell/subscriptions","organizations_url":"https://api.github.com/users/stokwell/orgs","repos_url":"https://api.github.com/users/stokwell/repos","events_url":"https://api.github.com/users/stokwell/events{/privacy}","received_events_url":"https://api.github.com/users/stokwell/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-22T15:48:48Z","updated_at":"2016-11-22T20:25:23Z","closed_at":"2016-11-22T15:49:14Z","merged_at":"2016-11-22T15:49:14Z","merge_commit_sha":"d88c937ba57af53c1778fb5197e58fec48043728","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/stokwell/qna-postgresql/pulls/3/commits","review_comments_url":"https://api.github.com/repos/stokwell/qna-postgresql/pulls/3/comments","review_comment_url":"https://api.github.com/repos/stokwell/qna-postgresql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stokwell/qna-postgresql/issues/3/comments","statuses_url":"https://api.github.com/repos/stokwell/qna-postgresql/statuses/0864935424a0ce62ff4d0a5b6fca56d26dc380f6","head":{"label":"stokwell:acceptance-tests","ref":"acceptance-tests","sha":"0864935424a0ce62ff4d0a5b6fca56d26dc380f6","user":{"login":"stokwell","id":19650764,"avatar_url":"https://avatars.githubusercontent.com/u/19650764?v=3","gravatar_id":"","url":"https://api.github.com/users/stokwell","html_url":"https://github.com/stokwell","followers_url":"https://api.github.com/users/stokwell/followers","following_url":"https://api.github.com/users/stokwell/following{/other_user}","gists_url":"https://api.github.com/users/stokwell/gists{/gist_id}","starred_url":"https://api.github.com/users/stokwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stokwell/subscriptions","organizations_url":"https://api.github.com/users/stokwell/orgs","repos_url":"https://api.github.com/users/stokwell/repos","events_url":"https://api.github.com/users/stokwell/events{/privacy}","received_events_url":"https://api.github.com/users/stokwell/received_events","type":"User","site_admin":false},"repo":{"id":73700399,"name":"qna-postgresql","full_name":"stokwell/qna-postgresql","owner":{"login":"stokwell","id":19650764,"avatar_url":"https://avatars.githubusercontent.com/u/19650764?v=3","gravatar_id":"","url":"https://api.github.com/users/stokwell","html_url":"https://github.com/stokwell","followers_url":"https://api.github.com/users/stokwell/followers","following_url":"https://api.github.com/users/stokwell/following{/other_user}","gists_url":"https://api.github.com/users/stokwell/gists{/gist_id}","starred_url":"https://api.github.com/users/stokwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stokwell/subscriptions","organizations_url":"https://api.github.com/users/stokwell/orgs","repos_url":"https://api.github.com/users/stokwell/repos","events_url":"https://api.github.com/users/stokwell/events{/privacy}","received_events_url":"https://api.github.com/users/stokwell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stokwell/qna-postgresql","description":null,"fork":false,"url":"https://api.github.com/repos/stokwell/qna-postgresql","forks_url":"https://api.github.com/repos/stokwell/qna-postgresql/forks","keys_url":"https://api.github.com/repos/stokwell/qna-postgresql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stokwell/qna-postgresql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stokwell/qna-postgresql/teams","hooks_url":"https://api.github.com/repos/stokwell/qna-postgresql/hooks","issue_events_url":"https://api.github.com/repos/stokwell/qna-postgresql/issues/events{/number}","events_url":"https://api.github.com/repos/stokwell/qna-postgresql/events","assignees_url":"https://api.github.com/repos/stokwell/qna-postgresql/assignees{/user}","branches_url":"https://api.github.com/repos/stokwell/qna-postgresql/branches{/branch}","tags_url":"https://api.github.com/repos/stokwell/qna-postgresql/tags","blobs_url":"https://api.github.com/repos/stokwell/qna-postgresql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stokwell/qna-postgresql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stokwell/qna-postgresql/git/refs{/sha}","trees_url":"https://api.github.com/repos/stokwell/qna-postgresql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stokwell/qna-postgresql/statuses/{sha}","languages_url":"https://api.github.com/repos/stokwell/qna-postgresql/languages","stargazers_url":"https://api.github.com/repos/stokwell/qna-postgresql/stargazers","contributors_url":"https://api.github.com/repos/stokwell/qna-postgresql/contributors","subscribers_url":"https://api.github.com/repos/stokwell/qna-postgresql/subscribers","subscription_url":"https://api.github.com/repos/stokwell/qna-postgresql/subscription","commits_url":"https://api.github.com/repos/stokwell/qna-postgresql/commits{/sha}","git_commits_url":"https://api.github.com/repos/stokwell/qna-postgresql/git/commits{/sha}","comments_url":"https://api.github.com/repos/stokwell/qna-postgresql/comments{/number}","issue_comment_url":"https://api.github.com/repos/stokwell/qna-postgresql/issues/comments{/number}","contents_url":"https://api.github.com/repos/stokwell/qna-postgresql/contents/{+path}","compare_url":"https://api.github.com/repos/stokwell/qna-postgresql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stokwell/qna-postgresql/merges","archive_url":"https://api.github.com/repos/stokwell/qna-postgresql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stokwell/qna-postgresql/downloads","issues_url":"https://api.github.com/repos/stokwell/qna-postgresql/issues{/number}","pulls_url":"https://api.github.com/repos/stokwell/qna-postgresql/pulls{/number}","milestones_url":"https://api.github.com/repos/stokwell/qna-postgresql/milestones{/number}","notifications_url":"https://api.github.com/repos/stokwell/qna-postgresql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stokwell/qna-postgresql/labels{/name}","releases_url":"https://api.github.com/repos/stokwell/qna-postgresql/releases{/id}","deployments_url":"https://api.github.com/repos/stokwell/qna-postgresql/deployments","created_at":"2016-11-14T11:58:24Z","updated_at":"2016-11-14T11:59:02Z","pushed_at":"2016-11-22T15:49:15Z","git_url":"git://github.com/stokwell/qna-postgresql.git","ssh_url":"git@github.com:stokwell/qna-postgresql.git","clone_url":"https://github.com/stokwell/qna-postgresql.git","svn_url":"https://github.com/stokwell/qna-postgresql","homepage":null,"size":56,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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":"stokwell:master","ref":"master","sha":"2575784c7eb3c6146d68a639de0ddf9ec2258f04","user":{"login":"stokwell","id":19650764,"avatar_url":"https://avatars.githubusercontent.com/u/19650764?v=3","gravatar_id":"","url":"https://api.github.com/users/stokwell","html_url":"https://github.com/stokwell","followers_url":"https://api.github.com/users/stokwell/followers","following_url":"https://api.github.com/users/stokwell/following{/other_user}","gists_url":"https://api.github.com/users/stokwell/gists{/gist_id}","starred_url":"https://api.github.com/users/stokwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stokwell/subscriptions","organizations_url":"https://api.github.com/users/stokwell/orgs","repos_url":"https://api.github.com/users/stokwell/repos","events_url":"https://api.github.com/users/stokwell/events{/privacy}","received_events_url":"https://api.github.com/users/stokwell/received_events","type":"User","site_admin":false},"repo":{"id":73700399,"name":"qna-postgresql","full_name":"stokwell/qna-postgresql","owner":{"login":"stokwell","id":19650764,"avatar_url":"https://avatars.githubusercontent.com/u/19650764?v=3","gravatar_id":"","url":"https://api.github.com/users/stokwell","html_url":"https://github.com/stokwell","followers_url":"https://api.github.com/users/stokwell/followers","following_url":"https://api.github.com/users/stokwell/following{/other_user}","gists_url":"https://api.github.com/users/stokwell/gists{/gist_id}","starred_url":"https://api.github.com/users/stokwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stokwell/subscriptions","organizations_url":"https://api.github.com/users/stokwell/orgs","repos_url":"https://api.github.com/users/stokwell/repos","events_url":"https://api.github.com/users/stokwell/events{/privacy}","received_events_url":"https://api.github.com/users/stokwell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stokwell/qna-postgresql","description":null,"fork":false,"url":"https://api.github.com/repos/stokwell/qna-postgresql","forks_url":"https://api.github.com/repos/stokwell/qna-postgresql/forks","keys_url":"https://api.github.com/repos/stokwell/qna-postgresql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stokwell/qna-postgresql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stokwell/qna-postgresql/teams","hooks_url":"https://api.github.com/repos/stokwell/qna-postgresql/hooks","issue_events_url":"https://api.github.com/repos/stokwell/qna-postgresql/issues/events{/number}","events_url":"https://api.github.com/repos/stokwell/qna-postgresql/events","assignees_url":"https://api.github.com/repos/stokwell/qna-postgresql/assignees{/user}","branches_url":"https://api.github.com/repos/stokwell/qna-postgresql/branches{/branch}","tags_url":"https://api.github.com/repos/stokwell/qna-postgresql/tags","blobs_url":"https://api.github.com/repos/stokwell/qna-postgresql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stokwell/qna-postgresql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stokwell/qna-postgresql/git/refs{/sha}","trees_url":"https://api.github.com/repos/stokwell/qna-postgresql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stokwell/qna-postgresql/statuses/{sha}","languages_url":"https://api.github.com/repos/stokwell/qna-postgresql/languages","stargazers_url":"https://api.github.com/repos/stokwell/qna-postgresql/stargazers","contributors_url":"https://api.github.com/repos/stokwell/qna-postgresql/contributors","subscribers_url":"https://api.github.com/repos/stokwell/qna-postgresql/subscribers","subscription_url":"https://api.github.com/repos/stokwell/qna-postgresql/subscription","commits_url":"https://api.github.com/repos/stokwell/qna-postgresql/commits{/sha}","git_commits_url":"https://api.github.com/repos/stokwell/qna-postgresql/git/commits{/sha}","comments_url":"https://api.github.com/repos/stokwell/qna-postgresql/comments{/number}","issue_comment_url":"https://api.github.com/repos/stokwell/qna-postgresql/issues/comments{/number}","contents_url":"https://api.github.com/repos/stokwell/qna-postgresql/contents/{+path}","compare_url":"https://api.github.com/repos/stokwell/qna-postgresql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stokwell/qna-postgresql/merges","archive_url":"https://api.github.com/repos/stokwell/qna-postgresql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stokwell/qna-postgresql/downloads","issues_url":"https://api.github.com/repos/stokwell/qna-postgresql/issues{/number}","pulls_url":"https://api.github.com/repos/stokwell/qna-postgresql/pulls{/number}","milestones_url":"https://api.github.com/repos/stokwell/qna-postgresql/milestones{/number}","notifications_url":"https://api.github.com/repos/stokwell/qna-postgresql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stokwell/qna-postgresql/labels{/name}","releases_url":"https://api.github.com/repos/stokwell/qna-postgresql/releases{/id}","deployments_url":"https://api.github.com/repos/stokwell/qna-postgresql/deployments","created_at":"2016-11-14T11:58:24Z","updated_at":"2016-11-14T11:59:02Z","pushed_at":"2016-11-22T15:49:15Z","git_url":"git://github.com/stokwell/qna-postgresql.git","ssh_url":"git@github.com:stokwell/qna-postgresql.git","clone_url":"https://github.com/stokwell/qna-postgresql.git","svn_url":"https://github.com/stokwell/qna-postgresql","homepage":null,"size":56,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/stokwell/qna-postgresql/pulls/3"},"html":{"href":"https://github.com/stokwell/qna-postgresql/pull/3"},"issue":{"href":"https://api.github.com/repos/stokwell/qna-postgresql/issues/3"},"comments":{"href":"https://api.github.com/repos/stokwell/qna-postgresql/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/stokwell/qna-postgresql/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/stokwell/qna-postgresql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stokwell/qna-postgresql/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/stokwell/qna-postgresql/statuses/0864935424a0ce62ff4d0a5b6fca56d26dc380f6"}}}}
{"actor":{"display_login":"palkan"}}