{"action":"created","comment":{"url":"https://api.github.com/repos/Skysplit/selleo-recruitment/pulls/comments/104887839","pull_request_review_id":25741490,"id":104887839,"diff_hunk":"@@ -1,5 +1,12 @@\n class User < ApplicationRecord\n   devise :database_authenticatable\n+\n   enum gender: [:other, :male, :female]\n-  has_many :interests\n+\n+  has_many :interests, dependent: :delete_all","path":"app/models/user.rb","position":7,"original_position":7,"commit_id":"d468e9c67eab5ffa01c4eecbd3a21e16f2541421","original_commit_id":"d468e9c67eab5ffa01c4eecbd3a21e16f2541421","user":{"login":"socjopata","id":129827,"avatar_url":"https://avatars3.githubusercontent.com/u/129827?v=3","gravatar_id":"","url":"https://api.github.com/users/socjopata","html_url":"https://github.com/socjopata","followers_url":"https://api.github.com/users/socjopata/followers","following_url":"https://api.github.com/users/socjopata/following{/other_user}","gists_url":"https://api.github.com/users/socjopata/gists{/gist_id}","starred_url":"https://api.github.com/users/socjopata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/socjopata/subscriptions","organizations_url":"https://api.github.com/users/socjopata/orgs","repos_url":"https://api.github.com/users/socjopata/repos","events_url":"https://api.github.com/users/socjopata/events{/privacy}","received_events_url":"https://api.github.com/users/socjopata/received_events","type":"User","site_admin":false},"body":"Could you please provide some background on your choice here, i.e why we prefer `:delete_all` instead of `:destroy`? :)","created_at":"2017-03-08T10:28:22Z","updated_at":"2017-03-08T10:52:39Z","html_url":"https://github.com/Skysplit/selleo-recruitment/pull/16#discussion_r104887839","pull_request_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/Skysplit/selleo-recruitment/pulls/comments/104887839"},"html":{"href":"https://github.com/Skysplit/selleo-recruitment/pull/16#discussion_r104887839"},"pull_request":{"href":"https://api.github.com/repos/Skysplit/selleo-recruitment/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/Skysplit/selleo-recruitment/pulls/16","id":109600530,"html_url":"https://github.com/Skysplit/selleo-recruitment/pull/16","diff_url":"https://github.com/Skysplit/selleo-recruitment/pull/16.diff","patch_url":"https://github.com/Skysplit/selleo-recruitment/pull/16.patch","issue_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/issues/16","number":16,"state":"open","locked":false,"title":"Add admin panel page for managing users","user":{"login":"Skysplit","id":3975381,"avatar_url":"https://avatars2.githubusercontent.com/u/3975381?v=3","gravatar_id":"","url":"https://api.github.com/users/Skysplit","html_url":"https://github.com/Skysplit","followers_url":"https://api.github.com/users/Skysplit/followers","following_url":"https://api.github.com/users/Skysplit/following{/other_user}","gists_url":"https://api.github.com/users/Skysplit/gists{/gist_id}","starred_url":"https://api.github.com/users/Skysplit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skysplit/subscriptions","organizations_url":"https://api.github.com/users/Skysplit/orgs","repos_url":"https://api.github.com/users/Skysplit/repos","events_url":"https://api.github.com/users/Skysplit/events{/privacy}","received_events_url":"https://api.github.com/users/Skysplit/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-08T00:06:22Z","updated_at":"2017-03-08T10:52:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a95fa31618fca38e71402a5e1c085983ef0bf801","assignee":{"login":"Skysplit","id":3975381,"avatar_url":"https://avatars2.githubusercontent.com/u/3975381?v=3","gravatar_id":"","url":"https://api.github.com/users/Skysplit","html_url":"https://github.com/Skysplit","followers_url":"https://api.github.com/users/Skysplit/followers","following_url":"https://api.github.com/users/Skysplit/following{/other_user}","gists_url":"https://api.github.com/users/Skysplit/gists{/gist_id}","starred_url":"https://api.github.com/users/Skysplit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skysplit/subscriptions","organizations_url":"https://api.github.com/users/Skysplit/orgs","repos_url":"https://api.github.com/users/Skysplit/repos","events_url":"https://api.github.com/users/Skysplit/events{/privacy}","received_events_url":"https://api.github.com/users/Skysplit/received_events","type":"User","site_admin":false},"assignees":[{"login":"Skysplit","id":3975381,"avatar_url":"https://avatars2.githubusercontent.com/u/3975381?v=3","gravatar_id":"","url":"https://api.github.com/users/Skysplit","html_url":"https://github.com/Skysplit","followers_url":"https://api.github.com/users/Skysplit/followers","following_url":"https://api.github.com/users/Skysplit/following{/other_user}","gists_url":"https://api.github.com/users/Skysplit/gists{/gist_id}","starred_url":"https://api.github.com/users/Skysplit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skysplit/subscriptions","organizations_url":"https://api.github.com/users/Skysplit/orgs","repos_url":"https://api.github.com/users/Skysplit/repos","events_url":"https://api.github.com/users/Skysplit/events{/privacy}","received_events_url":"https://api.github.com/users/Skysplit/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Skysplit/selleo-recruitment/milestones/3","html_url":"https://github.com/Skysplit/selleo-recruitment/milestone/3","labels_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/milestones/3/labels","id":2367149,"number":3,"title":"Task 5","description":"In the admin panel there is a form, where an **email**, **gender**, **age**, **points of interests** can be specified for new and existing users.\r\n\r\n**Requirement**: the form should offer a possibility to dynamically specify the points of interest for the user, by adding additional fields to the form, without reloading the page. Each point of interest can have a name and a type (from the predefined collection of: [\"**health**\", \"**hobby**\", \"**work**\"]). When it comes to the number of points of interest, user can have them between 0 and infinity.\r\n\r\n**Hint**: https://github.com/ryanb/nested_form lub https://github.com/nathanvda/cocoon","creator":{"login":"Skysplit","id":3975381,"avatar_url":"https://avatars2.githubusercontent.com/u/3975381?v=3","gravatar_id":"","url":"https://api.github.com/users/Skysplit","html_url":"https://github.com/Skysplit","followers_url":"https://api.github.com/users/Skysplit/followers","following_url":"https://api.github.com/users/Skysplit/following{/other_user}","gists_url":"https://api.github.com/users/Skysplit/gists{/gist_id}","starred_url":"https://api.github.com/users/Skysplit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skysplit/subscriptions","organizations_url":"https://api.github.com/users/Skysplit/orgs","repos_url":"https://api.github.com/users/Skysplit/repos","events_url":"https://api.github.com/users/Skysplit/events{/privacy}","received_events_url":"https://api.github.com/users/Skysplit/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2017-03-06T20:04:10Z","updated_at":"2017-03-08T00:06:22Z","due_on":"2017-03-07T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/pulls/16/commits","review_comments_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/pulls/16/comments","review_comment_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/issues/16/comments","statuses_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/statuses/d468e9c67eab5ffa01c4eecbd3a21e16f2541421","head":{"label":"Skysplit:task-5","ref":"task-5","sha":"d468e9c67eab5ffa01c4eecbd3a21e16f2541421","user":{"login":"Skysplit","id":3975381,"avatar_url":"https://avatars2.githubusercontent.com/u/3975381?v=3","gravatar_id":"","url":"https://api.github.com/users/Skysplit","html_url":"https://github.com/Skysplit","followers_url":"https://api.github.com/users/Skysplit/followers","following_url":"https://api.github.com/users/Skysplit/following{/other_user}","gists_url":"https://api.github.com/users/Skysplit/gists{/gist_id}","starred_url":"https://api.github.com/users/Skysplit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skysplit/subscriptions","organizations_url":"https://api.github.com/users/Skysplit/orgs","repos_url":"https://api.github.com/users/Skysplit/repos","events_url":"https://api.github.com/users/Skysplit/events{/privacy}","received_events_url":"https://api.github.com/users/Skysplit/received_events","type":"User","site_admin":false},"repo":{"id":83333130,"name":"selleo-recruitment","full_name":"Skysplit/selleo-recruitment","owner":{"login":"Skysplit","id":3975381,"avatar_url":"https://avatars2.githubusercontent.com/u/3975381?v=3","gravatar_id":"","url":"https://api.github.com/users/Skysplit","html_url":"https://github.com/Skysplit","followers_url":"https://api.github.com/users/Skysplit/followers","following_url":"https://api.github.com/users/Skysplit/following{/other_user}","gists_url":"https://api.github.com/users/Skysplit/gists{/gist_id}","starred_url":"https://api.github.com/users/Skysplit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skysplit/subscriptions","organizations_url":"https://api.github.com/users/Skysplit/orgs","repos_url":"https://api.github.com/users/Skysplit/repos","events_url":"https://api.github.com/users/Skysplit/events{/privacy}","received_events_url":"https://api.github.com/users/Skysplit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Skysplit/selleo-recruitment","description":null,"fork":false,"url":"https://api.github.com/repos/Skysplit/selleo-recruitment","forks_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/forks","keys_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/teams","hooks_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/hooks","issue_events_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/issues/events{/number}","events_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/events","assignees_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/assignees{/user}","branches_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/branches{/branch}","tags_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/tags","blobs_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/git/refs{/sha}","trees_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/statuses/{sha}","languages_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/languages","stargazers_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/stargazers","contributors_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/contributors","subscribers_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/subscribers","subscription_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/subscription","commits_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/commits{/sha}","git_commits_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/git/commits{/sha}","comments_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/comments{/number}","issue_comment_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/issues/comments{/number}","contents_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/contents/{+path}","compare_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/merges","archive_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/downloads","issues_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/issues{/number}","pulls_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/pulls{/number}","milestones_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/milestones{/number}","notifications_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/labels{/name}","releases_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/releases{/id}","deployments_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/deployments","created_at":"2017-02-27T16:42:34Z","updated_at":"2017-03-06T10:42:41Z","pushed_at":"2017-03-08T00:06:23Z","git_url":"git://github.com/Skysplit/selleo-recruitment.git","ssh_url":"git@github.com:Skysplit/selleo-recruitment.git","clone_url":"https://github.com/Skysplit/selleo-recruitment.git","svn_url":"https://github.com/Skysplit/selleo-recruitment","homepage":null,"size":82,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"Skysplit:master","ref":"master","sha":"3e621707dc0cf77713a58672f56c3a6a7feb6fea","user":{"login":"Skysplit","id":3975381,"avatar_url":"https://avatars2.githubusercontent.com/u/3975381?v=3","gravatar_id":"","url":"https://api.github.com/users/Skysplit","html_url":"https://github.com/Skysplit","followers_url":"https://api.github.com/users/Skysplit/followers","following_url":"https://api.github.com/users/Skysplit/following{/other_user}","gists_url":"https://api.github.com/users/Skysplit/gists{/gist_id}","starred_url":"https://api.github.com/users/Skysplit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skysplit/subscriptions","organizations_url":"https://api.github.com/users/Skysplit/orgs","repos_url":"https://api.github.com/users/Skysplit/repos","events_url":"https://api.github.com/users/Skysplit/events{/privacy}","received_events_url":"https://api.github.com/users/Skysplit/received_events","type":"User","site_admin":false},"repo":{"id":83333130,"name":"selleo-recruitment","full_name":"Skysplit/selleo-recruitment","owner":{"login":"Skysplit","id":3975381,"avatar_url":"https://avatars2.githubusercontent.com/u/3975381?v=3","gravatar_id":"","url":"https://api.github.com/users/Skysplit","html_url":"https://github.com/Skysplit","followers_url":"https://api.github.com/users/Skysplit/followers","following_url":"https://api.github.com/users/Skysplit/following{/other_user}","gists_url":"https://api.github.com/users/Skysplit/gists{/gist_id}","starred_url":"https://api.github.com/users/Skysplit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skysplit/subscriptions","organizations_url":"https://api.github.com/users/Skysplit/orgs","repos_url":"https://api.github.com/users/Skysplit/repos","events_url":"https://api.github.com/users/Skysplit/events{/privacy}","received_events_url":"https://api.github.com/users/Skysplit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Skysplit/selleo-recruitment","description":null,"fork":false,"url":"https://api.github.com/repos/Skysplit/selleo-recruitment","forks_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/forks","keys_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/teams","hooks_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/hooks","issue_events_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/issues/events{/number}","events_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/events","assignees_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/assignees{/user}","branches_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/branches{/branch}","tags_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/tags","blobs_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/git/refs{/sha}","trees_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/statuses/{sha}","languages_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/languages","stargazers_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/stargazers","contributors_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/contributors","subscribers_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/subscribers","subscription_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/subscription","commits_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/commits{/sha}","git_commits_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/git/commits{/sha}","comments_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/comments{/number}","issue_comment_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/issues/comments{/number}","contents_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/contents/{+path}","compare_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/merges","archive_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/downloads","issues_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/issues{/number}","pulls_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/pulls{/number}","milestones_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/milestones{/number}","notifications_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/labels{/name}","releases_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/releases{/id}","deployments_url":"https://api.github.com/repos/Skysplit/selleo-recruitment/deployments","created_at":"2017-02-27T16:42:34Z","updated_at":"2017-03-06T10:42:41Z","pushed_at":"2017-03-08T00:06:23Z","git_url":"git://github.com/Skysplit/selleo-recruitment.git","ssh_url":"git@github.com:Skysplit/selleo-recruitment.git","clone_url":"https://github.com/Skysplit/selleo-recruitment.git","svn_url":"https://github.com/Skysplit/selleo-recruitment","homepage":null,"size":82,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Skysplit/selleo-recruitment/pulls/16"},"html":{"href":"https://github.com/Skysplit/selleo-recruitment/pull/16"},"issue":{"href":"https://api.github.com/repos/Skysplit/selleo-recruitment/issues/16"},"comments":{"href":"https://api.github.com/repos/Skysplit/selleo-recruitment/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/Skysplit/selleo-recruitment/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/Skysplit/selleo-recruitment/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Skysplit/selleo-recruitment/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/Skysplit/selleo-recruitment/statuses/d468e9c67eab5ffa01c4eecbd3a21e16f2541421"}}}}
{"actor":{"display_login":"socjopata"}}