{"action":"created","comment":{"url":"https://api.github.com/repos/globaldev/releasehub/pulls/comments/92428718","pull_request_review_id":12943382,"id":92428718,"diff_hunk":"@@ -3,6 +3,7 @@ def change\n     create_table :projects do |t|\n       t.integer :deployment_id\n       t.integer :branch_id\n+      t.integer :deployment_order","path":"db/migrate/20150902133758_create_projects.rb","position":4,"original_position":4,"commit_id":"341f617b67f08d4adf20ec88e47982e67db7363a","original_commit_id":"341f617b67f08d4adf20ec88e47982e67db7363a","user":{"login":"mendable","id":53007,"avatar_url":"https://avatars.githubusercontent.com/u/53007?v=3","gravatar_id":"","url":"https://api.github.com/users/mendable","html_url":"https://github.com/mendable","followers_url":"https://api.github.com/users/mendable/followers","following_url":"https://api.github.com/users/mendable/following{/other_user}","gists_url":"https://api.github.com/users/mendable/gists{/gist_id}","starred_url":"https://api.github.com/users/mendable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendable/subscriptions","organizations_url":"https://api.github.com/users/mendable/orgs","repos_url":"https://api.github.com/users/mendable/repos","events_url":"https://api.github.com/users/mendable/events{/privacy}","received_events_url":"https://api.github.com/users/mendable/received_events","type":"User","site_admin":false},"body":"When making a change to an _existing_ database schema we should change the existing database by adding a new migrations, not than editing a previous ones.\r\n\r\nWhen the database already exists, we'd run `rake db:migrate` to apply database changes, which would only run _new_ migrations - it wouldn't re-run old migrations or wipe existing tables/data.\r\n\r\nThe migrations are a \"changelog\" of the versions of the database.\r\n\r\nAlso see: http://guides.rubyonrails.org/v4.1/migrations.html","created_at":"2016-12-14T16:17:14Z","updated_at":"2016-12-14T16:22:47Z","html_url":"https://github.com/globaldev/releasehub/pull/10#discussion_r92428718","pull_request_url":"https://api.github.com/repos/globaldev/releasehub/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/globaldev/releasehub/pulls/comments/92428718"},"html":{"href":"https://github.com/globaldev/releasehub/pull/10#discussion_r92428718"},"pull_request":{"href":"https://api.github.com/repos/globaldev/releasehub/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/globaldev/releasehub/pulls/10","id":97737248,"html_url":"https://github.com/globaldev/releasehub/pull/10","diff_url":"https://github.com/globaldev/releasehub/pull/10.diff","patch_url":"https://github.com/globaldev/releasehub/pull/10.patch","issue_url":"https://api.github.com/repos/globaldev/releasehub/issues/10","number":10,"state":"open","locked":false,"title":"May 349 deploy order box","user":{"login":"elibar-uk","id":15984662,"avatar_url":"https://avatars.githubusercontent.com/u/15984662?v=3","gravatar_id":"","url":"https://api.github.com/users/elibar-uk","html_url":"https://github.com/elibar-uk","followers_url":"https://api.github.com/users/elibar-uk/followers","following_url":"https://api.github.com/users/elibar-uk/following{/other_user}","gists_url":"https://api.github.com/users/elibar-uk/gists{/gist_id}","starred_url":"https://api.github.com/users/elibar-uk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elibar-uk/subscriptions","organizations_url":"https://api.github.com/users/elibar-uk/orgs","repos_url":"https://api.github.com/users/elibar-uk/repos","events_url":"https://api.github.com/users/elibar-uk/events{/privacy}","received_events_url":"https://api.github.com/users/elibar-uk/received_events","type":"User","site_admin":false},"body":"### Goals\r\n- **[MAY-349](https://globalpersonals.atlassian.net/browse/MAY-349):** Deploy order box\r\n\r\nadds deployment order to project, edits the view - adds select options for deployment order \r\n\r\n***Progress: 30%***\r\n\r\n![screen shot 2016-12-14 at 15 33 57](https://cloud.githubusercontent.com/assets/15984662/21188627/e0dd2ce8-c213-11e6-87a1-b7e499a9ee33.png)\r\n---\r\n\r\n","created_at":"2016-12-13T11:59:59Z","updated_at":"2016-12-14T16:22:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7dcb7fc0f1ec304c5a5a20dd8cf7ab069c9f7a2d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/globaldev/releasehub/pulls/10/commits","review_comments_url":"https://api.github.com/repos/globaldev/releasehub/pulls/10/comments","review_comment_url":"https://api.github.com/repos/globaldev/releasehub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/globaldev/releasehub/issues/10/comments","statuses_url":"https://api.github.com/repos/globaldev/releasehub/statuses/341f617b67f08d4adf20ec88e47982e67db7363a","head":{"label":"globaldev:MAY-349-deploy-order-box","ref":"MAY-349-deploy-order-box","sha":"341f617b67f08d4adf20ec88e47982e67db7363a","user":{"login":"globaldev","id":180070,"avatar_url":"https://avatars.githubusercontent.com/u/180070?v=3","gravatar_id":"","url":"https://api.github.com/users/globaldev","html_url":"https://github.com/globaldev","followers_url":"https://api.github.com/users/globaldev/followers","following_url":"https://api.github.com/users/globaldev/following{/other_user}","gists_url":"https://api.github.com/users/globaldev/gists{/gist_id}","starred_url":"https://api.github.com/users/globaldev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/globaldev/subscriptions","organizations_url":"https://api.github.com/users/globaldev/orgs","repos_url":"https://api.github.com/users/globaldev/repos","events_url":"https://api.github.com/users/globaldev/events{/privacy}","received_events_url":"https://api.github.com/users/globaldev/received_events","type":"Organization","site_admin":false},"repo":{"id":49564741,"name":"releasehub","full_name":"globaldev/releasehub","owner":{"login":"globaldev","id":180070,"avatar_url":"https://avatars.githubusercontent.com/u/180070?v=3","gravatar_id":"","url":"https://api.github.com/users/globaldev","html_url":"https://github.com/globaldev","followers_url":"https://api.github.com/users/globaldev/followers","following_url":"https://api.github.com/users/globaldev/following{/other_user}","gists_url":"https://api.github.com/users/globaldev/gists{/gist_id}","starred_url":"https://api.github.com/users/globaldev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/globaldev/subscriptions","organizations_url":"https://api.github.com/users/globaldev/orgs","repos_url":"https://api.github.com/users/globaldev/repos","events_url":"https://api.github.com/users/globaldev/events{/privacy}","received_events_url":"https://api.github.com/users/globaldev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/globaldev/releasehub","description":"Deliver codes faster and easier","fork":true,"url":"https://api.github.com/repos/globaldev/releasehub","forks_url":"https://api.github.com/repos/globaldev/releasehub/forks","keys_url":"https://api.github.com/repos/globaldev/releasehub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/globaldev/releasehub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/globaldev/releasehub/teams","hooks_url":"https://api.github.com/repos/globaldev/releasehub/hooks","issue_events_url":"https://api.github.com/repos/globaldev/releasehub/issues/events{/number}","events_url":"https://api.github.com/repos/globaldev/releasehub/events","assignees_url":"https://api.github.com/repos/globaldev/releasehub/assignees{/user}","branches_url":"https://api.github.com/repos/globaldev/releasehub/branches{/branch}","tags_url":"https://api.github.com/repos/globaldev/releasehub/tags","blobs_url":"https://api.github.com/repos/globaldev/releasehub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/globaldev/releasehub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/globaldev/releasehub/git/refs{/sha}","trees_url":"https://api.github.com/repos/globaldev/releasehub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/globaldev/releasehub/statuses/{sha}","languages_url":"https://api.github.com/repos/globaldev/releasehub/languages","stargazers_url":"https://api.github.com/repos/globaldev/releasehub/stargazers","contributors_url":"https://api.github.com/repos/globaldev/releasehub/contributors","subscribers_url":"https://api.github.com/repos/globaldev/releasehub/subscribers","subscription_url":"https://api.github.com/repos/globaldev/releasehub/subscription","commits_url":"https://api.github.com/repos/globaldev/releasehub/commits{/sha}","git_commits_url":"https://api.github.com/repos/globaldev/releasehub/git/commits{/sha}","comments_url":"https://api.github.com/repos/globaldev/releasehub/comments{/number}","issue_comment_url":"https://api.github.com/repos/globaldev/releasehub/issues/comments{/number}","contents_url":"https://api.github.com/repos/globaldev/releasehub/contents/{+path}","compare_url":"https://api.github.com/repos/globaldev/releasehub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/globaldev/releasehub/merges","archive_url":"https://api.github.com/repos/globaldev/releasehub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/globaldev/releasehub/downloads","issues_url":"https://api.github.com/repos/globaldev/releasehub/issues{/number}","pulls_url":"https://api.github.com/repos/globaldev/releasehub/pulls{/number}","milestones_url":"https://api.github.com/repos/globaldev/releasehub/milestones{/number}","notifications_url":"https://api.github.com/repos/globaldev/releasehub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/globaldev/releasehub/labels{/name}","releases_url":"https://api.github.com/repos/globaldev/releasehub/releases{/id}","deployments_url":"https://api.github.com/repos/globaldev/releasehub/deployments","created_at":"2016-01-13T09:47:15Z","updated_at":"2016-01-13T09:47:18Z","pushed_at":"2016-12-14T15:32:10Z","git_url":"git://github.com/globaldev/releasehub.git","ssh_url":"git@github.com:globaldev/releasehub.git","clone_url":"https://github.com/globaldev/releasehub.git","svn_url":"https://github.com/globaldev/releasehub","homepage":"https://releasehub.herokuapp.com/","size":235,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"globaldev:master","ref":"master","sha":"314d102cb05c317cb5cb1e995808c00b2f085273","user":{"login":"globaldev","id":180070,"avatar_url":"https://avatars.githubusercontent.com/u/180070?v=3","gravatar_id":"","url":"https://api.github.com/users/globaldev","html_url":"https://github.com/globaldev","followers_url":"https://api.github.com/users/globaldev/followers","following_url":"https://api.github.com/users/globaldev/following{/other_user}","gists_url":"https://api.github.com/users/globaldev/gists{/gist_id}","starred_url":"https://api.github.com/users/globaldev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/globaldev/subscriptions","organizations_url":"https://api.github.com/users/globaldev/orgs","repos_url":"https://api.github.com/users/globaldev/repos","events_url":"https://api.github.com/users/globaldev/events{/privacy}","received_events_url":"https://api.github.com/users/globaldev/received_events","type":"Organization","site_admin":false},"repo":{"id":49564741,"name":"releasehub","full_name":"globaldev/releasehub","owner":{"login":"globaldev","id":180070,"avatar_url":"https://avatars.githubusercontent.com/u/180070?v=3","gravatar_id":"","url":"https://api.github.com/users/globaldev","html_url":"https://github.com/globaldev","followers_url":"https://api.github.com/users/globaldev/followers","following_url":"https://api.github.com/users/globaldev/following{/other_user}","gists_url":"https://api.github.com/users/globaldev/gists{/gist_id}","starred_url":"https://api.github.com/users/globaldev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/globaldev/subscriptions","organizations_url":"https://api.github.com/users/globaldev/orgs","repos_url":"https://api.github.com/users/globaldev/repos","events_url":"https://api.github.com/users/globaldev/events{/privacy}","received_events_url":"https://api.github.com/users/globaldev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/globaldev/releasehub","description":"Deliver codes faster and easier","fork":true,"url":"https://api.github.com/repos/globaldev/releasehub","forks_url":"https://api.github.com/repos/globaldev/releasehub/forks","keys_url":"https://api.github.com/repos/globaldev/releasehub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/globaldev/releasehub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/globaldev/releasehub/teams","hooks_url":"https://api.github.com/repos/globaldev/releasehub/hooks","issue_events_url":"https://api.github.com/repos/globaldev/releasehub/issues/events{/number}","events_url":"https://api.github.com/repos/globaldev/releasehub/events","assignees_url":"https://api.github.com/repos/globaldev/releasehub/assignees{/user}","branches_url":"https://api.github.com/repos/globaldev/releasehub/branches{/branch}","tags_url":"https://api.github.com/repos/globaldev/releasehub/tags","blobs_url":"https://api.github.com/repos/globaldev/releasehub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/globaldev/releasehub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/globaldev/releasehub/git/refs{/sha}","trees_url":"https://api.github.com/repos/globaldev/releasehub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/globaldev/releasehub/statuses/{sha}","languages_url":"https://api.github.com/repos/globaldev/releasehub/languages","stargazers_url":"https://api.github.com/repos/globaldev/releasehub/stargazers","contributors_url":"https://api.github.com/repos/globaldev/releasehub/contributors","subscribers_url":"https://api.github.com/repos/globaldev/releasehub/subscribers","subscription_url":"https://api.github.com/repos/globaldev/releasehub/subscription","commits_url":"https://api.github.com/repos/globaldev/releasehub/commits{/sha}","git_commits_url":"https://api.github.com/repos/globaldev/releasehub/git/commits{/sha}","comments_url":"https://api.github.com/repos/globaldev/releasehub/comments{/number}","issue_comment_url":"https://api.github.com/repos/globaldev/releasehub/issues/comments{/number}","contents_url":"https://api.github.com/repos/globaldev/releasehub/contents/{+path}","compare_url":"https://api.github.com/repos/globaldev/releasehub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/globaldev/releasehub/merges","archive_url":"https://api.github.com/repos/globaldev/releasehub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/globaldev/releasehub/downloads","issues_url":"https://api.github.com/repos/globaldev/releasehub/issues{/number}","pulls_url":"https://api.github.com/repos/globaldev/releasehub/pulls{/number}","milestones_url":"https://api.github.com/repos/globaldev/releasehub/milestones{/number}","notifications_url":"https://api.github.com/repos/globaldev/releasehub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/globaldev/releasehub/labels{/name}","releases_url":"https://api.github.com/repos/globaldev/releasehub/releases{/id}","deployments_url":"https://api.github.com/repos/globaldev/releasehub/deployments","created_at":"2016-01-13T09:47:15Z","updated_at":"2016-01-13T09:47:18Z","pushed_at":"2016-12-14T15:32:10Z","git_url":"git://github.com/globaldev/releasehub.git","ssh_url":"git@github.com:globaldev/releasehub.git","clone_url":"https://github.com/globaldev/releasehub.git","svn_url":"https://github.com/globaldev/releasehub","homepage":"https://releasehub.herokuapp.com/","size":235,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/globaldev/releasehub/pulls/10"},"html":{"href":"https://github.com/globaldev/releasehub/pull/10"},"issue":{"href":"https://api.github.com/repos/globaldev/releasehub/issues/10"},"comments":{"href":"https://api.github.com/repos/globaldev/releasehub/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/globaldev/releasehub/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/globaldev/releasehub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/globaldev/releasehub/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/globaldev/releasehub/statuses/341f617b67f08d4adf20ec88e47982e67db7363a"}}}}
{"actor":{"display_login":"mendable"}}