{"action":"created","comment":{"url":"https://api.github.com/repos/iterableio/api/pulls/comments/56774348","id":56774348,"diff_hunk":"@@ -2,14 +2,14 @@ defmodule Api.Repo.Migrations.CreateFile do\n   use Ecto.Migration\n \n   def change do\n-    create table(:files, primary_key: false) do\n-      add :id, :uuid, primary_key: true\n+    create table(:files) do\n       add :path, :string, null: false\n       add :name, :string, null: false\n-      add :user_id, references(:users), null: false\n+      add :user_id, references(:users, on_delete: :nothing), null: false","path":"priv/repo/migrations/20160320223200_create_file.exs","position":10,"original_position":10,"commit_id":"2460b7990a71ae89ff27ff2416d029974fa8807c","original_commit_id":"2460b7990a71ae89ff27ff2416d029974fa8807c","user":{"login":"rossem","id":6597373,"avatar_url":"https://avatars.githubusercontent.com/u/6597373?v=3","gravatar_id":"","url":"https://api.github.com/users/rossem","html_url":"https://github.com/rossem","followers_url":"https://api.github.com/users/rossem/followers","following_url":"https://api.github.com/users/rossem/following{/other_user}","gists_url":"https://api.github.com/users/rossem/gists{/gist_id}","starred_url":"https://api.github.com/users/rossem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossem/subscriptions","organizations_url":"https://api.github.com/users/rossem/orgs","repos_url":"https://api.github.com/users/rossem/repos","events_url":"https://api.github.com/users/rossem/events{/privacy}","received_events_url":"https://api.github.com/users/rossem/received_events","type":"User","site_admin":false},"body":"why? do we want orphans","created_at":"2016-03-20T23:06:38Z","updated_at":"2016-03-20T23:06:38Z","html_url":"https://github.com/iterableio/api/pull/13#discussion_r56774348","pull_request_url":"https://api.github.com/repos/iterableio/api/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/iterableio/api/pulls/comments/56774348"},"html":{"href":"https://github.com/iterableio/api/pull/13#discussion_r56774348"},"pull_request":{"href":"https://api.github.com/repos/iterableio/api/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/iterableio/api/pulls/13","id":63510845,"html_url":"https://github.com/iterableio/api/pull/13","diff_url":"https://github.com/iterableio/api/pull/13.diff","patch_url":"https://github.com/iterableio/api/pull/13.patch","issue_url":"https://api.github.com/repos/iterableio/api/issues/13","number":13,"state":"open","locked":false,"title":"File schema with integer id and removed null ugliness","user":{"login":"Wojtechnology","id":6377160,"avatar_url":"https://avatars.githubusercontent.com/u/6377160?v=3","gravatar_id":"","url":"https://api.github.com/users/Wojtechnology","html_url":"https://github.com/Wojtechnology","followers_url":"https://api.github.com/users/Wojtechnology/followers","following_url":"https://api.github.com/users/Wojtechnology/following{/other_user}","gists_url":"https://api.github.com/users/Wojtechnology/gists{/gist_id}","starred_url":"https://api.github.com/users/Wojtechnology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wojtechnology/subscriptions","organizations_url":"https://api.github.com/users/Wojtechnology/orgs","repos_url":"https://api.github.com/users/Wojtechnology/repos","events_url":"https://api.github.com/users/Wojtechnology/events{/privacy}","received_events_url":"https://api.github.com/users/Wojtechnology/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-20T23:05:38Z","updated_at":"2016-03-20T23:06:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d9887ace5f46df854ac954adff5b9879849054e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/iterableio/api/pulls/13/commits","review_comments_url":"https://api.github.com/repos/iterableio/api/pulls/13/comments","review_comment_url":"https://api.github.com/repos/iterableio/api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iterableio/api/issues/13/comments","statuses_url":"https://api.github.com/repos/iterableio/api/statuses/2460b7990a71ae89ff27ff2416d029974fa8807c","head":{"label":"iterableio:ws-frames-schema","ref":"ws-frames-schema","sha":"2460b7990a71ae89ff27ff2416d029974fa8807c","user":{"login":"iterableio","id":17819951,"avatar_url":"https://avatars.githubusercontent.com/u/17819951?v=3","gravatar_id":"","url":"https://api.github.com/users/iterableio","html_url":"https://github.com/iterableio","followers_url":"https://api.github.com/users/iterableio/followers","following_url":"https://api.github.com/users/iterableio/following{/other_user}","gists_url":"https://api.github.com/users/iterableio/gists{/gist_id}","starred_url":"https://api.github.com/users/iterableio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iterableio/subscriptions","organizations_url":"https://api.github.com/users/iterableio/orgs","repos_url":"https://api.github.com/users/iterableio/repos","events_url":"https://api.github.com/users/iterableio/events{/privacy}","received_events_url":"https://api.github.com/users/iterableio/received_events","type":"Organization","site_admin":false},"repo":{"id":54282518,"name":"api","full_name":"iterableio/api","owner":{"login":"iterableio","id":17819951,"avatar_url":"https://avatars.githubusercontent.com/u/17819951?v=3","gravatar_id":"","url":"https://api.github.com/users/iterableio","html_url":"https://github.com/iterableio","followers_url":"https://api.github.com/users/iterableio/followers","following_url":"https://api.github.com/users/iterableio/following{/other_user}","gists_url":"https://api.github.com/users/iterableio/gists{/gist_id}","starred_url":"https://api.github.com/users/iterableio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iterableio/subscriptions","organizations_url":"https://api.github.com/users/iterableio/orgs","repos_url":"https://api.github.com/users/iterableio/repos","events_url":"https://api.github.com/users/iterableio/events{/privacy}","received_events_url":"https://api.github.com/users/iterableio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iterableio/api","description":"iterable api","fork":false,"url":"https://api.github.com/repos/iterableio/api","forks_url":"https://api.github.com/repos/iterableio/api/forks","keys_url":"https://api.github.com/repos/iterableio/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iterableio/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iterableio/api/teams","hooks_url":"https://api.github.com/repos/iterableio/api/hooks","issue_events_url":"https://api.github.com/repos/iterableio/api/issues/events{/number}","events_url":"https://api.github.com/repos/iterableio/api/events","assignees_url":"https://api.github.com/repos/iterableio/api/assignees{/user}","branches_url":"https://api.github.com/repos/iterableio/api/branches{/branch}","tags_url":"https://api.github.com/repos/iterableio/api/tags","blobs_url":"https://api.github.com/repos/iterableio/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iterableio/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iterableio/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/iterableio/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iterableio/api/statuses/{sha}","languages_url":"https://api.github.com/repos/iterableio/api/languages","stargazers_url":"https://api.github.com/repos/iterableio/api/stargazers","contributors_url":"https://api.github.com/repos/iterableio/api/contributors","subscribers_url":"https://api.github.com/repos/iterableio/api/subscribers","subscription_url":"https://api.github.com/repos/iterableio/api/subscription","commits_url":"https://api.github.com/repos/iterableio/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/iterableio/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/iterableio/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/iterableio/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/iterableio/api/contents/{+path}","compare_url":"https://api.github.com/repos/iterableio/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iterableio/api/merges","archive_url":"https://api.github.com/repos/iterableio/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iterableio/api/downloads","issues_url":"https://api.github.com/repos/iterableio/api/issues{/number}","pulls_url":"https://api.github.com/repos/iterableio/api/pulls{/number}","milestones_url":"https://api.github.com/repos/iterableio/api/milestones{/number}","notifications_url":"https://api.github.com/repos/iterableio/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iterableio/api/labels{/name}","releases_url":"https://api.github.com/repos/iterableio/api/releases{/id}","deployments_url":"https://api.github.com/repos/iterableio/api/deployments","created_at":"2016-03-19T19:06:46Z","updated_at":"2016-03-20T03:35:56Z","pushed_at":"2016-03-20T23:05:38Z","git_url":"git://github.com/iterableio/api.git","ssh_url":"git@github.com:iterableio/api.git","clone_url":"https://github.com/iterableio/api.git","svn_url":"https://github.com/iterableio/api","homepage":null,"size":88,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"iterableio:master","ref":"master","sha":"edd28615d1ace1d8c5d504211d00c8d9335f0d08","user":{"login":"iterableio","id":17819951,"avatar_url":"https://avatars.githubusercontent.com/u/17819951?v=3","gravatar_id":"","url":"https://api.github.com/users/iterableio","html_url":"https://github.com/iterableio","followers_url":"https://api.github.com/users/iterableio/followers","following_url":"https://api.github.com/users/iterableio/following{/other_user}","gists_url":"https://api.github.com/users/iterableio/gists{/gist_id}","starred_url":"https://api.github.com/users/iterableio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iterableio/subscriptions","organizations_url":"https://api.github.com/users/iterableio/orgs","repos_url":"https://api.github.com/users/iterableio/repos","events_url":"https://api.github.com/users/iterableio/events{/privacy}","received_events_url":"https://api.github.com/users/iterableio/received_events","type":"Organization","site_admin":false},"repo":{"id":54282518,"name":"api","full_name":"iterableio/api","owner":{"login":"iterableio","id":17819951,"avatar_url":"https://avatars.githubusercontent.com/u/17819951?v=3","gravatar_id":"","url":"https://api.github.com/users/iterableio","html_url":"https://github.com/iterableio","followers_url":"https://api.github.com/users/iterableio/followers","following_url":"https://api.github.com/users/iterableio/following{/other_user}","gists_url":"https://api.github.com/users/iterableio/gists{/gist_id}","starred_url":"https://api.github.com/users/iterableio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iterableio/subscriptions","organizations_url":"https://api.github.com/users/iterableio/orgs","repos_url":"https://api.github.com/users/iterableio/repos","events_url":"https://api.github.com/users/iterableio/events{/privacy}","received_events_url":"https://api.github.com/users/iterableio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iterableio/api","description":"iterable api","fork":false,"url":"https://api.github.com/repos/iterableio/api","forks_url":"https://api.github.com/repos/iterableio/api/forks","keys_url":"https://api.github.com/repos/iterableio/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iterableio/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iterableio/api/teams","hooks_url":"https://api.github.com/repos/iterableio/api/hooks","issue_events_url":"https://api.github.com/repos/iterableio/api/issues/events{/number}","events_url":"https://api.github.com/repos/iterableio/api/events","assignees_url":"https://api.github.com/repos/iterableio/api/assignees{/user}","branches_url":"https://api.github.com/repos/iterableio/api/branches{/branch}","tags_url":"https://api.github.com/repos/iterableio/api/tags","blobs_url":"https://api.github.com/repos/iterableio/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iterableio/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iterableio/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/iterableio/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iterableio/api/statuses/{sha}","languages_url":"https://api.github.com/repos/iterableio/api/languages","stargazers_url":"https://api.github.com/repos/iterableio/api/stargazers","contributors_url":"https://api.github.com/repos/iterableio/api/contributors","subscribers_url":"https://api.github.com/repos/iterableio/api/subscribers","subscription_url":"https://api.github.com/repos/iterableio/api/subscription","commits_url":"https://api.github.com/repos/iterableio/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/iterableio/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/iterableio/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/iterableio/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/iterableio/api/contents/{+path}","compare_url":"https://api.github.com/repos/iterableio/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iterableio/api/merges","archive_url":"https://api.github.com/repos/iterableio/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iterableio/api/downloads","issues_url":"https://api.github.com/repos/iterableio/api/issues{/number}","pulls_url":"https://api.github.com/repos/iterableio/api/pulls{/number}","milestones_url":"https://api.github.com/repos/iterableio/api/milestones{/number}","notifications_url":"https://api.github.com/repos/iterableio/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iterableio/api/labels{/name}","releases_url":"https://api.github.com/repos/iterableio/api/releases{/id}","deployments_url":"https://api.github.com/repos/iterableio/api/deployments","created_at":"2016-03-19T19:06:46Z","updated_at":"2016-03-20T03:35:56Z","pushed_at":"2016-03-20T23:05:38Z","git_url":"git://github.com/iterableio/api.git","ssh_url":"git@github.com:iterableio/api.git","clone_url":"https://github.com/iterableio/api.git","svn_url":"https://github.com/iterableio/api","homepage":null,"size":88,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iterableio/api/pulls/13"},"html":{"href":"https://github.com/iterableio/api/pull/13"},"issue":{"href":"https://api.github.com/repos/iterableio/api/issues/13"},"comments":{"href":"https://api.github.com/repos/iterableio/api/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/iterableio/api/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/iterableio/api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iterableio/api/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/iterableio/api/statuses/2460b7990a71ae89ff27ff2416d029974fa8807c"}}}}