{"action":"created","comment":{"url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments/29503335","id":29503335,"diff_hunk":"@@ -25,7 +25,7 @@ class User < ActiveRecord::Base\n   has_many :collection_roles, through: :identity_group\n   has_many :user_seen_subjects\n \n-  has_many :subject_queues, dependent: :destroy","path":"app/models/user.rb","position":4,"original_position":4,"commit_id":"ec7fd101477797b91d1873ff9d8b1c3271d1741d","original_commit_id":"ec7fd101477797b91d1873ff9d8b1c3271d1741d","user":{"login":"edpaget","id":108177,"avatar_url":"https://avatars.githubusercontent.com/u/108177?v=3","gravatar_id":"","url":"https://api.github.com/users/edpaget","html_url":"https://github.com/edpaget","followers_url":"https://api.github.com/users/edpaget/followers","following_url":"https://api.github.com/users/edpaget/following{/other_user}","gists_url":"https://api.github.com/users/edpaget/gists{/gist_id}","starred_url":"https://api.github.com/users/edpaget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edpaget/subscriptions","organizations_url":"https://api.github.com/users/edpaget/orgs","repos_url":"https://api.github.com/users/edpaget/repos","events_url":"https://api.github.com/users/edpaget/events{/privacy}","received_events_url":"https://api.github.com/users/edpaget/received_events","type":"User","site_admin":false},"body":"Yes its up to you. If we do want to set dependent relationships on the user model we should probably add Preferences and Memberships as well. ","created_at":"2015-05-01T14:12:37Z","updated_at":"2015-05-01T14:12:37Z","html_url":"https://github.com/zooniverse/Panoptes/pull/775#discussion_r29503335","pull_request_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/775","_links":{"self":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments/29503335"},"html":{"href":"https://github.com/zooniverse/Panoptes/pull/775#discussion_r29503335"},"pull_request":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/775"}}},"pull_request":{"url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/775","id":34500358,"html_url":"https://github.com/zooniverse/Panoptes/pull/775","diff_url":"https://github.com/zooniverse/Panoptes/pull/775.diff","patch_url":"https://github.com/zooniverse/Panoptes/pull/775.patch","issue_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/775","number":775,"state":"open","locked":false,"title":"Add dependent relationships to models","user":{"login":"edpaget","id":108177,"avatar_url":"https://avatars.githubusercontent.com/u/108177?v=3","gravatar_id":"","url":"https://api.github.com/users/edpaget","html_url":"https://github.com/edpaget","followers_url":"https://api.github.com/users/edpaget/followers","following_url":"https://api.github.com/users/edpaget/following{/other_user}","gists_url":"https://api.github.com/users/edpaget/gists{/gist_id}","starred_url":"https://api.github.com/users/edpaget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edpaget/subscriptions","organizations_url":"https://api.github.com/users/edpaget/orgs","repos_url":"https://api.github.com/users/edpaget/repos","events_url":"https://api.github.com/users/edpaget/events{/privacy}","received_events_url":"https://api.github.com/users/edpaget/received_events","type":"User","site_admin":false},"body":"When a project is destroyed its subject sets and associated models\r\nshould also be destroyed, but we should keep subjects around in case\r\nthey are being used by other projects. Classifications and workflows\r\nshould also remain so we can still redo the since if necessary.\r\n\r\nSubjects and Workflows can still be explicitly destroyed on their own.\r\n\r\nCloses #652","created_at":"2015-04-30T20:58:18Z","updated_at":"2015-05-01T14:12:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e29a40fbb30670cccde734c91bcd410715b1606","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/775/commits","review_comments_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/775/comments","review_comment_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/775/comments","statuses_url":"https://api.github.com/repos/zooniverse/Panoptes/statuses/ec7fd101477797b91d1873ff9d8b1c3271d1741d","head":{"label":"edpaget:examine-destroy-relationships","ref":"examine-destroy-relationships","sha":"ec7fd101477797b91d1873ff9d8b1c3271d1741d","user":{"login":"edpaget","id":108177,"avatar_url":"https://avatars.githubusercontent.com/u/108177?v=3","gravatar_id":"","url":"https://api.github.com/users/edpaget","html_url":"https://github.com/edpaget","followers_url":"https://api.github.com/users/edpaget/followers","following_url":"https://api.github.com/users/edpaget/following{/other_user}","gists_url":"https://api.github.com/users/edpaget/gists{/gist_id}","starred_url":"https://api.github.com/users/edpaget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edpaget/subscriptions","organizations_url":"https://api.github.com/users/edpaget/orgs","repos_url":"https://api.github.com/users/edpaget/repos","events_url":"https://api.github.com/users/edpaget/events{/privacy}","received_events_url":"https://api.github.com/users/edpaget/received_events","type":"User","site_admin":false},"repo":{"id":20313194,"name":"Panoptes","full_name":"edpaget/Panoptes","owner":{"login":"edpaget","id":108177,"avatar_url":"https://avatars.githubusercontent.com/u/108177?v=3","gravatar_id":"","url":"https://api.github.com/users/edpaget","html_url":"https://github.com/edpaget","followers_url":"https://api.github.com/users/edpaget/followers","following_url":"https://api.github.com/users/edpaget/following{/other_user}","gists_url":"https://api.github.com/users/edpaget/gists{/gist_id}","starred_url":"https://api.github.com/users/edpaget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edpaget/subscriptions","organizations_url":"https://api.github.com/users/edpaget/orgs","repos_url":"https://api.github.com/users/edpaget/repos","events_url":"https://api.github.com/users/edpaget/events{/privacy}","received_events_url":"https://api.github.com/users/edpaget/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/edpaget/Panoptes","description":"It sees everything","fork":true,"url":"https://api.github.com/repos/edpaget/Panoptes","forks_url":"https://api.github.com/repos/edpaget/Panoptes/forks","keys_url":"https://api.github.com/repos/edpaget/Panoptes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edpaget/Panoptes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edpaget/Panoptes/teams","hooks_url":"https://api.github.com/repos/edpaget/Panoptes/hooks","issue_events_url":"https://api.github.com/repos/edpaget/Panoptes/issues/events{/number}","events_url":"https://api.github.com/repos/edpaget/Panoptes/events","assignees_url":"https://api.github.com/repos/edpaget/Panoptes/assignees{/user}","branches_url":"https://api.github.com/repos/edpaget/Panoptes/branches{/branch}","tags_url":"https://api.github.com/repos/edpaget/Panoptes/tags","blobs_url":"https://api.github.com/repos/edpaget/Panoptes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edpaget/Panoptes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edpaget/Panoptes/git/refs{/sha}","trees_url":"https://api.github.com/repos/edpaget/Panoptes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edpaget/Panoptes/statuses/{sha}","languages_url":"https://api.github.com/repos/edpaget/Panoptes/languages","stargazers_url":"https://api.github.com/repos/edpaget/Panoptes/stargazers","contributors_url":"https://api.github.com/repos/edpaget/Panoptes/contributors","subscribers_url":"https://api.github.com/repos/edpaget/Panoptes/subscribers","subscription_url":"https://api.github.com/repos/edpaget/Panoptes/subscription","commits_url":"https://api.github.com/repos/edpaget/Panoptes/commits{/sha}","git_commits_url":"https://api.github.com/repos/edpaget/Panoptes/git/commits{/sha}","comments_url":"https://api.github.com/repos/edpaget/Panoptes/comments{/number}","issue_comment_url":"https://api.github.com/repos/edpaget/Panoptes/issues/comments{/number}","contents_url":"https://api.github.com/repos/edpaget/Panoptes/contents/{+path}","compare_url":"https://api.github.com/repos/edpaget/Panoptes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edpaget/Panoptes/merges","archive_url":"https://api.github.com/repos/edpaget/Panoptes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edpaget/Panoptes/downloads","issues_url":"https://api.github.com/repos/edpaget/Panoptes/issues{/number}","pulls_url":"https://api.github.com/repos/edpaget/Panoptes/pulls{/number}","milestones_url":"https://api.github.com/repos/edpaget/Panoptes/milestones{/number}","notifications_url":"https://api.github.com/repos/edpaget/Panoptes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edpaget/Panoptes/labels{/name}","releases_url":"https://api.github.com/repos/edpaget/Panoptes/releases{/id}","created_at":"2014-05-30T01:09:54Z","updated_at":"2015-04-20T14:05:52Z","pushed_at":"2015-05-01T14:08:20Z","git_url":"git://github.com/edpaget/Panoptes.git","ssh_url":"git@github.com:edpaget/Panoptes.git","clone_url":"https://github.com/edpaget/Panoptes.git","svn_url":"https://github.com/edpaget/Panoptes","homepage":"","size":5701,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"zooniverse:master","ref":"master","sha":"7fb8b2e3b73aa9cc1dcb4b7dd2fbc5139d900cd7","user":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"repo":{"id":19036577,"name":"Panoptes","full_name":"zooniverse/Panoptes","owner":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zooniverse/Panoptes","description":"It sees everything","fork":false,"url":"https://api.github.com/repos/zooniverse/Panoptes","forks_url":"https://api.github.com/repos/zooniverse/Panoptes/forks","keys_url":"https://api.github.com/repos/zooniverse/Panoptes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zooniverse/Panoptes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zooniverse/Panoptes/teams","hooks_url":"https://api.github.com/repos/zooniverse/Panoptes/hooks","issue_events_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/events{/number}","events_url":"https://api.github.com/repos/zooniverse/Panoptes/events","assignees_url":"https://api.github.com/repos/zooniverse/Panoptes/assignees{/user}","branches_url":"https://api.github.com/repos/zooniverse/Panoptes/branches{/branch}","tags_url":"https://api.github.com/repos/zooniverse/Panoptes/tags","blobs_url":"https://api.github.com/repos/zooniverse/Panoptes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zooniverse/Panoptes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zooniverse/Panoptes/git/refs{/sha}","trees_url":"https://api.github.com/repos/zooniverse/Panoptes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zooniverse/Panoptes/statuses/{sha}","languages_url":"https://api.github.com/repos/zooniverse/Panoptes/languages","stargazers_url":"https://api.github.com/repos/zooniverse/Panoptes/stargazers","contributors_url":"https://api.github.com/repos/zooniverse/Panoptes/contributors","subscribers_url":"https://api.github.com/repos/zooniverse/Panoptes/subscribers","subscription_url":"https://api.github.com/repos/zooniverse/Panoptes/subscription","commits_url":"https://api.github.com/repos/zooniverse/Panoptes/commits{/sha}","git_commits_url":"https://api.github.com/repos/zooniverse/Panoptes/git/commits{/sha}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes/comments{/number}","issue_comment_url":"https://api.github.com/repos/zooniverse/Panoptes/issues/comments{/number}","contents_url":"https://api.github.com/repos/zooniverse/Panoptes/contents/{+path}","compare_url":"https://api.github.com/repos/zooniverse/Panoptes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zooniverse/Panoptes/merges","archive_url":"https://api.github.com/repos/zooniverse/Panoptes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zooniverse/Panoptes/downloads","issues_url":"https://api.github.com/repos/zooniverse/Panoptes/issues{/number}","pulls_url":"https://api.github.com/repos/zooniverse/Panoptes/pulls{/number}","milestones_url":"https://api.github.com/repos/zooniverse/Panoptes/milestones{/number}","notifications_url":"https://api.github.com/repos/zooniverse/Panoptes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zooniverse/Panoptes/labels{/name}","releases_url":"https://api.github.com/repos/zooniverse/Panoptes/releases{/id}","created_at":"2014-04-22T16:16:02Z","updated_at":"2015-05-01T14:07:42Z","pushed_at":"2015-05-01T14:07:42Z","git_url":"git://github.com/zooniverse/Panoptes.git","ssh_url":"git@github.com:zooniverse/Panoptes.git","clone_url":"https://github.com/zooniverse/Panoptes.git","svn_url":"https://github.com/zooniverse/Panoptes","homepage":"","size":8006,"stargazers_count":27,"watchers_count":27,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":50,"forks":11,"open_issues":50,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/775"},"html":{"href":"https://github.com/zooniverse/Panoptes/pull/775"},"issue":{"href":"https://api.github.com/repos/zooniverse/Panoptes/issues/775"},"comments":{"href":"https://api.github.com/repos/zooniverse/Panoptes/issues/775/comments"},"review_comments":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/775/comments"},"review_comment":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zooniverse/Panoptes/pulls/775/commits"},"statuses":{"href":"https://api.github.com/repos/zooniverse/Panoptes/statuses/ec7fd101477797b91d1873ff9d8b1c3271d1741d"}}}}