{"action":"opened","number":223,"pull_request":{"url":"https://api.github.com/repos/PecanProject/bety/pulls/223","id":28954179,"html_url":"https://github.com/PecanProject/bety/pull/223","diff_url":"https://github.com/PecanProject/bety/pull/223.diff","patch_url":"https://github.com/PecanProject/bety/pull/223.patch","issue_url":"https://api.github.com/repos/PecanProject/bety/issues/223","number":223,"state":"open","locked":false,"title":"Draft migration addressing issues in GH #41.","user":{"login":"gsrohde","id":1706896,"avatar_url":"https://avatars.githubusercontent.com/u/1706896?v=3","gravatar_id":"","url":"https://api.github.com/users/gsrohde","html_url":"https://github.com/gsrohde","followers_url":"https://api.github.com/users/gsrohde/followers","following_url":"https://api.github.com/users/gsrohde/following{/other_user}","gists_url":"https://api.github.com/users/gsrohde/gists{/gist_id}","starred_url":"https://api.github.com/users/gsrohde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsrohde/subscriptions","organizations_url":"https://api.github.com/users/gsrohde/orgs","repos_url":"https://api.github.com/users/gsrohde/repos","events_url":"https://api.github.com/users/gsrohde/events{/privacy}","received_events_url":"https://api.github.com/users/gsrohde/received_events","type":"User","site_admin":false},"body":"This implements the changes outline in the spreadsheet at https://docs.google.com/spreadsheets/d/1fJgaOSR0egq5azYPCP0VRIWw1AazND0OCduyjONH9Wk/edit?pli=1#gid=1304822510 (see also GH #41 and related issues).\r\n\r\nPlease comment and suggest modifications if needed.\r\n\r\nMarking `formats.mimetype_id` and `yields.entity_id` as foreign keys and imposing value constraints on the new data fields will probably be done in later migrations.\r\n","created_at":"2015-02-09T20:37:09Z","updated_at":"2015-02-09T20:37:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PecanProject/bety/pulls/223/commits","review_comments_url":"https://api.github.com/repos/PecanProject/bety/pulls/223/comments","review_comment_url":"https://api.github.com/repos/PecanProject/bety/pulls/comments/{number}","comments_url":"https://api.github.com/repos/PecanProject/bety/issues/223/comments","statuses_url":"https://api.github.com/repos/PecanProject/bety/statuses/2757ed3f8242f3967cb30dc5d14519d9c263c650","head":{"label":"PecanProject:overhaul_db_tables","ref":"overhaul_db_tables","sha":"2757ed3f8242f3967cb30dc5d14519d9c263c650","user":{"login":"PecanProject","id":2879854,"avatar_url":"https://avatars.githubusercontent.com/u/2879854?v=3","gravatar_id":"","url":"https://api.github.com/users/PecanProject","html_url":"https://github.com/PecanProject","followers_url":"https://api.github.com/users/PecanProject/followers","following_url":"https://api.github.com/users/PecanProject/following{/other_user}","gists_url":"https://api.github.com/users/PecanProject/gists{/gist_id}","starred_url":"https://api.github.com/users/PecanProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PecanProject/subscriptions","organizations_url":"https://api.github.com/users/PecanProject/orgs","repos_url":"https://api.github.com/users/PecanProject/repos","events_url":"https://api.github.com/users/PecanProject/events{/privacy}","received_events_url":"https://api.github.com/users/PecanProject/received_events","type":"Organization","site_admin":false},"repo":{"id":6855801,"name":"bety","full_name":"PecanProject/bety","owner":{"login":"PecanProject","id":2879854,"avatar_url":"https://avatars.githubusercontent.com/u/2879854?v=3","gravatar_id":"","url":"https://api.github.com/users/PecanProject","html_url":"https://github.com/PecanProject","followers_url":"https://api.github.com/users/PecanProject/followers","following_url":"https://api.github.com/users/PecanProject/following{/other_user}","gists_url":"https://api.github.com/users/PecanProject/gists{/gist_id}","starred_url":"https://api.github.com/users/PecanProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PecanProject/subscriptions","organizations_url":"https://api.github.com/users/PecanProject/orgs","repos_url":"https://api.github.com/users/PecanProject/repos","events_url":"https://api.github.com/users/PecanProject/events{/privacy}","received_events_url":"https://api.github.com/users/PecanProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PecanProject/bety","description":"Web-interface to the Biofuel Ecophysiological Traits and Yields Database (the de-facto PEcAn database)","fork":false,"url":"https://api.github.com/repos/PecanProject/bety","forks_url":"https://api.github.com/repos/PecanProject/bety/forks","keys_url":"https://api.github.com/repos/PecanProject/bety/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PecanProject/bety/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PecanProject/bety/teams","hooks_url":"https://api.github.com/repos/PecanProject/bety/hooks","issue_events_url":"https://api.github.com/repos/PecanProject/bety/issues/events{/number}","events_url":"https://api.github.com/repos/PecanProject/bety/events","assignees_url":"https://api.github.com/repos/PecanProject/bety/assignees{/user}","branches_url":"https://api.github.com/repos/PecanProject/bety/branches{/branch}","tags_url":"https://api.github.com/repos/PecanProject/bety/tags","blobs_url":"https://api.github.com/repos/PecanProject/bety/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PecanProject/bety/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PecanProject/bety/git/refs{/sha}","trees_url":"https://api.github.com/repos/PecanProject/bety/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PecanProject/bety/statuses/{sha}","languages_url":"https://api.github.com/repos/PecanProject/bety/languages","stargazers_url":"https://api.github.com/repos/PecanProject/bety/stargazers","contributors_url":"https://api.github.com/repos/PecanProject/bety/contributors","subscribers_url":"https://api.github.com/repos/PecanProject/bety/subscribers","subscription_url":"https://api.github.com/repos/PecanProject/bety/subscription","commits_url":"https://api.github.com/repos/PecanProject/bety/commits{/sha}","git_commits_url":"https://api.github.com/repos/PecanProject/bety/git/commits{/sha}","comments_url":"https://api.github.com/repos/PecanProject/bety/comments{/number}","issue_comment_url":"https://api.github.com/repos/PecanProject/bety/issues/comments/{number}","contents_url":"https://api.github.com/repos/PecanProject/bety/contents/{+path}","compare_url":"https://api.github.com/repos/PecanProject/bety/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PecanProject/bety/merges","archive_url":"https://api.github.com/repos/PecanProject/bety/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PecanProject/bety/downloads","issues_url":"https://api.github.com/repos/PecanProject/bety/issues{/number}","pulls_url":"https://api.github.com/repos/PecanProject/bety/pulls{/number}","milestones_url":"https://api.github.com/repos/PecanProject/bety/milestones{/number}","notifications_url":"https://api.github.com/repos/PecanProject/bety/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PecanProject/bety/labels{/name}","releases_url":"https://api.github.com/repos/PecanProject/bety/releases{/id}","created_at":"2012-11-25T21:09:46Z","updated_at":"2015-02-05T20:54:26Z","pushed_at":"2015-02-09T20:25:32Z","git_url":"git://github.com/PecanProject/bety.git","ssh_url":"git@github.com:PecanProject/bety.git","clone_url":"https://github.com/PecanProject/bety.git","svn_url":"https://github.com/PecanProject/bety","homepage":"www.betydb.org","size":67028,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":15,"mirror_url":null,"open_issues_count":70,"forks":15,"open_issues":70,"watchers":4,"default_branch":"master"}},"base":{"label":"PecanProject:master","ref":"master","sha":"0ff950d845951ed67aeec4df41808954c3498e4e","user":{"login":"PecanProject","id":2879854,"avatar_url":"https://avatars.githubusercontent.com/u/2879854?v=3","gravatar_id":"","url":"https://api.github.com/users/PecanProject","html_url":"https://github.com/PecanProject","followers_url":"https://api.github.com/users/PecanProject/followers","following_url":"https://api.github.com/users/PecanProject/following{/other_user}","gists_url":"https://api.github.com/users/PecanProject/gists{/gist_id}","starred_url":"https://api.github.com/users/PecanProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PecanProject/subscriptions","organizations_url":"https://api.github.com/users/PecanProject/orgs","repos_url":"https://api.github.com/users/PecanProject/repos","events_url":"https://api.github.com/users/PecanProject/events{/privacy}","received_events_url":"https://api.github.com/users/PecanProject/received_events","type":"Organization","site_admin":false},"repo":{"id":6855801,"name":"bety","full_name":"PecanProject/bety","owner":{"login":"PecanProject","id":2879854,"avatar_url":"https://avatars.githubusercontent.com/u/2879854?v=3","gravatar_id":"","url":"https://api.github.com/users/PecanProject","html_url":"https://github.com/PecanProject","followers_url":"https://api.github.com/users/PecanProject/followers","following_url":"https://api.github.com/users/PecanProject/following{/other_user}","gists_url":"https://api.github.com/users/PecanProject/gists{/gist_id}","starred_url":"https://api.github.com/users/PecanProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PecanProject/subscriptions","organizations_url":"https://api.github.com/users/PecanProject/orgs","repos_url":"https://api.github.com/users/PecanProject/repos","events_url":"https://api.github.com/users/PecanProject/events{/privacy}","received_events_url":"https://api.github.com/users/PecanProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PecanProject/bety","description":"Web-interface to the Biofuel Ecophysiological Traits and Yields Database (the de-facto PEcAn database)","fork":false,"url":"https://api.github.com/repos/PecanProject/bety","forks_url":"https://api.github.com/repos/PecanProject/bety/forks","keys_url":"https://api.github.com/repos/PecanProject/bety/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PecanProject/bety/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PecanProject/bety/teams","hooks_url":"https://api.github.com/repos/PecanProject/bety/hooks","issue_events_url":"https://api.github.com/repos/PecanProject/bety/issues/events{/number}","events_url":"https://api.github.com/repos/PecanProject/bety/events","assignees_url":"https://api.github.com/repos/PecanProject/bety/assignees{/user}","branches_url":"https://api.github.com/repos/PecanProject/bety/branches{/branch}","tags_url":"https://api.github.com/repos/PecanProject/bety/tags","blobs_url":"https://api.github.com/repos/PecanProject/bety/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PecanProject/bety/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PecanProject/bety/git/refs{/sha}","trees_url":"https://api.github.com/repos/PecanProject/bety/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PecanProject/bety/statuses/{sha}","languages_url":"https://api.github.com/repos/PecanProject/bety/languages","stargazers_url":"https://api.github.com/repos/PecanProject/bety/stargazers","contributors_url":"https://api.github.com/repos/PecanProject/bety/contributors","subscribers_url":"https://api.github.com/repos/PecanProject/bety/subscribers","subscription_url":"https://api.github.com/repos/PecanProject/bety/subscription","commits_url":"https://api.github.com/repos/PecanProject/bety/commits{/sha}","git_commits_url":"https://api.github.com/repos/PecanProject/bety/git/commits{/sha}","comments_url":"https://api.github.com/repos/PecanProject/bety/comments{/number}","issue_comment_url":"https://api.github.com/repos/PecanProject/bety/issues/comments/{number}","contents_url":"https://api.github.com/repos/PecanProject/bety/contents/{+path}","compare_url":"https://api.github.com/repos/PecanProject/bety/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PecanProject/bety/merges","archive_url":"https://api.github.com/repos/PecanProject/bety/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PecanProject/bety/downloads","issues_url":"https://api.github.com/repos/PecanProject/bety/issues{/number}","pulls_url":"https://api.github.com/repos/PecanProject/bety/pulls{/number}","milestones_url":"https://api.github.com/repos/PecanProject/bety/milestones{/number}","notifications_url":"https://api.github.com/repos/PecanProject/bety/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PecanProject/bety/labels{/name}","releases_url":"https://api.github.com/repos/PecanProject/bety/releases{/id}","created_at":"2012-11-25T21:09:46Z","updated_at":"2015-02-05T20:54:26Z","pushed_at":"2015-02-09T20:25:32Z","git_url":"git://github.com/PecanProject/bety.git","ssh_url":"git@github.com:PecanProject/bety.git","clone_url":"https://github.com/PecanProject/bety.git","svn_url":"https://github.com/PecanProject/bety","homepage":"www.betydb.org","size":67028,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":15,"mirror_url":null,"open_issues_count":70,"forks":15,"open_issues":70,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PecanProject/bety/pulls/223"},"html":{"href":"https://github.com/PecanProject/bety/pull/223"},"issue":{"href":"https://api.github.com/repos/PecanProject/bety/issues/223"},"comments":{"href":"https://api.github.com/repos/PecanProject/bety/issues/223/comments"},"review_comments":{"href":"https://api.github.com/repos/PecanProject/bety/pulls/223/comments"},"review_comment":{"href":"https://api.github.com/repos/PecanProject/bety/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/PecanProject/bety/pulls/223/commits"},"statuses":{"href":"https://api.github.com/repos/PecanProject/bety/statuses/2757ed3f8242f3967cb30dc5d14519d9c263c650"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":93,"deletions":0,"changed_files":1}}