{"action":"created","comment":{"url":"https://api.github.com/repos/yuriidanyliak/TaDa/pulls/comments/31621635","id":31621635,"diff_hunk":"@@ -0,0 +1,6 @@\n+class DisallowNilValuesForDonePropInToDoItems < ActiveRecord::Migration\n+  def change\n+    ToDoItem.connection.execute('UPDATE to_do_items SET done = false WHERE done IS NULL')\n+    change_column :to_do_items, :done, :boolean, null: false","path":"db/migrate/20150603090734_disallow_nil_values_for_done_prop_in_to_do_items.rb","position":4,"original_position":4,"commit_id":"fa0589ce55268519ed7bc7bb3ac4794224705ad2","original_commit_id":"fa0589ce55268519ed7bc7bb3ac4794224705ad2","user":{"login":"sergeyradkevich","id":2563629,"avatar_url":"https://avatars.githubusercontent.com/u/2563629?v=3","gravatar_id":"","url":"https://api.github.com/users/sergeyradkevich","html_url":"https://github.com/sergeyradkevich","followers_url":"https://api.github.com/users/sergeyradkevich/followers","following_url":"https://api.github.com/users/sergeyradkevich/following{/other_user}","gists_url":"https://api.github.com/users/sergeyradkevich/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeyradkevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeyradkevich/subscriptions","organizations_url":"https://api.github.com/users/sergeyradkevich/orgs","repos_url":"https://api.github.com/users/sergeyradkevich/repos","events_url":"https://api.github.com/users/sergeyradkevich/events{/privacy}","received_events_url":"https://api.github.com/users/sergeyradkevich/received_events","type":"User","site_admin":false},"body":"@yuriidanyliak, `execute` method is available in scope of migration, no need to call through `ToDoItem.connection`.\r\n\r\nFYI: Another way to do a massive updates is to use http://apidock.com/rails/v4.0.2/ActiveRecord/Relation/update_all instead of raw sql.","created_at":"2015-06-03T13:25:45Z","updated_at":"2015-06-03T13:25:45Z","html_url":"https://github.com/yuriidanyliak/TaDa/pull/12#discussion_r31621635","pull_request_url":"https://api.github.com/repos/yuriidanyliak/TaDa/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/yuriidanyliak/TaDa/pulls/comments/31621635"},"html":{"href":"https://github.com/yuriidanyliak/TaDa/pull/12#discussion_r31621635"},"pull_request":{"href":"https://api.github.com/repos/yuriidanyliak/TaDa/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/yuriidanyliak/TaDa/pulls/12","id":36414185,"html_url":"https://github.com/yuriidanyliak/TaDa/pull/12","diff_url":"https://github.com/yuriidanyliak/TaDa/pull/12.diff","patch_url":"https://github.com/yuriidanyliak/TaDa/pull/12.patch","issue_url":"https://api.github.com/repos/yuriidanyliak/TaDa/issues/12","number":12,"state":"open","locked":false,"title":"Set up code coverage","user":{"login":"yuriidanyliak","id":5655132,"avatar_url":"https://avatars.githubusercontent.com/u/5655132?v=3","gravatar_id":"","url":"https://api.github.com/users/yuriidanyliak","html_url":"https://github.com/yuriidanyliak","followers_url":"https://api.github.com/users/yuriidanyliak/followers","following_url":"https://api.github.com/users/yuriidanyliak/following{/other_user}","gists_url":"https://api.github.com/users/yuriidanyliak/gists{/gist_id}","starred_url":"https://api.github.com/users/yuriidanyliak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuriidanyliak/subscriptions","organizations_url":"https://api.github.com/users/yuriidanyliak/orgs","repos_url":"https://api.github.com/users/yuriidanyliak/repos","events_url":"https://api.github.com/users/yuriidanyliak/events{/privacy}","received_events_url":"https://api.github.com/users/yuriidanyliak/received_events","type":"User","site_admin":false},"body":"https://github.com/colszowka/simplecov\r\n- [x] set up\r\n- [x] run coverage report ","created_at":"2015-05-28T14:45:22Z","updated_at":"2015-06-03T13:25:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"624f3d1db5af2e85578f9354c4531ac12c65cbe4","assignee":{"login":"yuriidanyliak","id":5655132,"avatar_url":"https://avatars.githubusercontent.com/u/5655132?v=3","gravatar_id":"","url":"https://api.github.com/users/yuriidanyliak","html_url":"https://github.com/yuriidanyliak","followers_url":"https://api.github.com/users/yuriidanyliak/followers","following_url":"https://api.github.com/users/yuriidanyliak/following{/other_user}","gists_url":"https://api.github.com/users/yuriidanyliak/gists{/gist_id}","starred_url":"https://api.github.com/users/yuriidanyliak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuriidanyliak/subscriptions","organizations_url":"https://api.github.com/users/yuriidanyliak/orgs","repos_url":"https://api.github.com/users/yuriidanyliak/repos","events_url":"https://api.github.com/users/yuriidanyliak/events{/privacy}","received_events_url":"https://api.github.com/users/yuriidanyliak/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/yuriidanyliak/TaDa/milestones/3","html_url":"https://github.com/yuriidanyliak/TaDa/milestones/Sprint%20%234","labels_url":"https://api.github.com/repos/yuriidanyliak/TaDa/milestones/3/labels","id":1144472,"number":3,"title":"Sprint #4","description":"","creator":{"login":"yuriidanyliak","id":5655132,"avatar_url":"https://avatars.githubusercontent.com/u/5655132?v=3","gravatar_id":"","url":"https://api.github.com/users/yuriidanyliak","html_url":"https://github.com/yuriidanyliak","followers_url":"https://api.github.com/users/yuriidanyliak/followers","following_url":"https://api.github.com/users/yuriidanyliak/following{/other_user}","gists_url":"https://api.github.com/users/yuriidanyliak/gists{/gist_id}","starred_url":"https://api.github.com/users/yuriidanyliak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuriidanyliak/subscriptions","organizations_url":"https://api.github.com/users/yuriidanyliak/orgs","repos_url":"https://api.github.com/users/yuriidanyliak/repos","events_url":"https://api.github.com/users/yuriidanyliak/events{/privacy}","received_events_url":"https://api.github.com/users/yuriidanyliak/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2015-06-02T08:29:05Z","updated_at":"2015-06-02T08:29:35Z","due_on":"2015-06-04T21:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/yuriidanyliak/TaDa/pulls/12/commits","review_comments_url":"https://api.github.com/repos/yuriidanyliak/TaDa/pulls/12/comments","review_comment_url":"https://api.github.com/repos/yuriidanyliak/TaDa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yuriidanyliak/TaDa/issues/12/comments","statuses_url":"https://api.github.com/repos/yuriidanyliak/TaDa/statuses/fa0589ce55268519ed7bc7bb3ac4794224705ad2","head":{"label":"yuriidanyliak:setting-up-code-coverage","ref":"setting-up-code-coverage","sha":"fa0589ce55268519ed7bc7bb3ac4794224705ad2","user":{"login":"yuriidanyliak","id":5655132,"avatar_url":"https://avatars.githubusercontent.com/u/5655132?v=3","gravatar_id":"","url":"https://api.github.com/users/yuriidanyliak","html_url":"https://github.com/yuriidanyliak","followers_url":"https://api.github.com/users/yuriidanyliak/followers","following_url":"https://api.github.com/users/yuriidanyliak/following{/other_user}","gists_url":"https://api.github.com/users/yuriidanyliak/gists{/gist_id}","starred_url":"https://api.github.com/users/yuriidanyliak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuriidanyliak/subscriptions","organizations_url":"https://api.github.com/users/yuriidanyliak/orgs","repos_url":"https://api.github.com/users/yuriidanyliak/repos","events_url":"https://api.github.com/users/yuriidanyliak/events{/privacy}","received_events_url":"https://api.github.com/users/yuriidanyliak/received_events","type":"User","site_admin":false},"repo":{"id":34806835,"name":"TaDa","full_name":"yuriidanyliak/TaDa","owner":{"login":"yuriidanyliak","id":5655132,"avatar_url":"https://avatars.githubusercontent.com/u/5655132?v=3","gravatar_id":"","url":"https://api.github.com/users/yuriidanyliak","html_url":"https://github.com/yuriidanyliak","followers_url":"https://api.github.com/users/yuriidanyliak/followers","following_url":"https://api.github.com/users/yuriidanyliak/following{/other_user}","gists_url":"https://api.github.com/users/yuriidanyliak/gists{/gist_id}","starred_url":"https://api.github.com/users/yuriidanyliak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuriidanyliak/subscriptions","organizations_url":"https://api.github.com/users/yuriidanyliak/orgs","repos_url":"https://api.github.com/users/yuriidanyliak/repos","events_url":"https://api.github.com/users/yuriidanyliak/events{/privacy}","received_events_url":"https://api.github.com/users/yuriidanyliak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuriidanyliak/TaDa","description":"","fork":false,"url":"https://api.github.com/repos/yuriidanyliak/TaDa","forks_url":"https://api.github.com/repos/yuriidanyliak/TaDa/forks","keys_url":"https://api.github.com/repos/yuriidanyliak/TaDa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuriidanyliak/TaDa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuriidanyliak/TaDa/teams","hooks_url":"https://api.github.com/repos/yuriidanyliak/TaDa/hooks","issue_events_url":"https://api.github.com/repos/yuriidanyliak/TaDa/issues/events{/number}","events_url":"https://api.github.com/repos/yuriidanyliak/TaDa/events","assignees_url":"https://api.github.com/repos/yuriidanyliak/TaDa/assignees{/user}","branches_url":"https://api.github.com/repos/yuriidanyliak/TaDa/branches{/branch}","tags_url":"https://api.github.com/repos/yuriidanyliak/TaDa/tags","blobs_url":"https://api.github.com/repos/yuriidanyliak/TaDa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuriidanyliak/TaDa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuriidanyliak/TaDa/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuriidanyliak/TaDa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuriidanyliak/TaDa/statuses/{sha}","languages_url":"https://api.github.com/repos/yuriidanyliak/TaDa/languages","stargazers_url":"https://api.github.com/repos/yuriidanyliak/TaDa/stargazers","contributors_url":"https://api.github.com/repos/yuriidanyliak/TaDa/contributors","subscribers_url":"https://api.github.com/repos/yuriidanyliak/TaDa/subscribers","subscription_url":"https://api.github.com/repos/yuriidanyliak/TaDa/subscription","commits_url":"https://api.github.com/repos/yuriidanyliak/TaDa/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuriidanyliak/TaDa/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuriidanyliak/TaDa/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuriidanyliak/TaDa/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuriidanyliak/TaDa/contents/{+path}","compare_url":"https://api.github.com/repos/yuriidanyliak/TaDa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuriidanyliak/TaDa/merges","archive_url":"https://api.github.com/repos/yuriidanyliak/TaDa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuriidanyliak/TaDa/downloads","issues_url":"https://api.github.com/repos/yuriidanyliak/TaDa/issues{/number}","pulls_url":"https://api.github.com/repos/yuriidanyliak/TaDa/pulls{/number}","milestones_url":"https://api.github.com/repos/yuriidanyliak/TaDa/milestones{/number}","notifications_url":"https://api.github.com/repos/yuriidanyliak/TaDa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuriidanyliak/TaDa/labels{/name}","releases_url":"https://api.github.com/repos/yuriidanyliak/TaDa/releases{/id}","created_at":"2015-04-29T17:06:22Z","updated_at":"2015-05-27T09:52:13Z","pushed_at":"2015-06-03T11:45:03Z","git_url":"git://github.com/yuriidanyliak/TaDa.git","ssh_url":"git@github.com:yuriidanyliak/TaDa.git","clone_url":"https://github.com/yuriidanyliak/TaDa.git","svn_url":"https://github.com/yuriidanyliak/TaDa","homepage":null,"size":3444,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"yuriidanyliak:master","ref":"master","sha":"eae62eff6d1b4e37011d039be28282c80f8763bf","user":{"login":"yuriidanyliak","id":5655132,"avatar_url":"https://avatars.githubusercontent.com/u/5655132?v=3","gravatar_id":"","url":"https://api.github.com/users/yuriidanyliak","html_url":"https://github.com/yuriidanyliak","followers_url":"https://api.github.com/users/yuriidanyliak/followers","following_url":"https://api.github.com/users/yuriidanyliak/following{/other_user}","gists_url":"https://api.github.com/users/yuriidanyliak/gists{/gist_id}","starred_url":"https://api.github.com/users/yuriidanyliak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuriidanyliak/subscriptions","organizations_url":"https://api.github.com/users/yuriidanyliak/orgs","repos_url":"https://api.github.com/users/yuriidanyliak/repos","events_url":"https://api.github.com/users/yuriidanyliak/events{/privacy}","received_events_url":"https://api.github.com/users/yuriidanyliak/received_events","type":"User","site_admin":false},"repo":{"id":34806835,"name":"TaDa","full_name":"yuriidanyliak/TaDa","owner":{"login":"yuriidanyliak","id":5655132,"avatar_url":"https://avatars.githubusercontent.com/u/5655132?v=3","gravatar_id":"","url":"https://api.github.com/users/yuriidanyliak","html_url":"https://github.com/yuriidanyliak","followers_url":"https://api.github.com/users/yuriidanyliak/followers","following_url":"https://api.github.com/users/yuriidanyliak/following{/other_user}","gists_url":"https://api.github.com/users/yuriidanyliak/gists{/gist_id}","starred_url":"https://api.github.com/users/yuriidanyliak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuriidanyliak/subscriptions","organizations_url":"https://api.github.com/users/yuriidanyliak/orgs","repos_url":"https://api.github.com/users/yuriidanyliak/repos","events_url":"https://api.github.com/users/yuriidanyliak/events{/privacy}","received_events_url":"https://api.github.com/users/yuriidanyliak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuriidanyliak/TaDa","description":"","fork":false,"url":"https://api.github.com/repos/yuriidanyliak/TaDa","forks_url":"https://api.github.com/repos/yuriidanyliak/TaDa/forks","keys_url":"https://api.github.com/repos/yuriidanyliak/TaDa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuriidanyliak/TaDa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuriidanyliak/TaDa/teams","hooks_url":"https://api.github.com/repos/yuriidanyliak/TaDa/hooks","issue_events_url":"https://api.github.com/repos/yuriidanyliak/TaDa/issues/events{/number}","events_url":"https://api.github.com/repos/yuriidanyliak/TaDa/events","assignees_url":"https://api.github.com/repos/yuriidanyliak/TaDa/assignees{/user}","branches_url":"https://api.github.com/repos/yuriidanyliak/TaDa/branches{/branch}","tags_url":"https://api.github.com/repos/yuriidanyliak/TaDa/tags","blobs_url":"https://api.github.com/repos/yuriidanyliak/TaDa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuriidanyliak/TaDa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuriidanyliak/TaDa/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuriidanyliak/TaDa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuriidanyliak/TaDa/statuses/{sha}","languages_url":"https://api.github.com/repos/yuriidanyliak/TaDa/languages","stargazers_url":"https://api.github.com/repos/yuriidanyliak/TaDa/stargazers","contributors_url":"https://api.github.com/repos/yuriidanyliak/TaDa/contributors","subscribers_url":"https://api.github.com/repos/yuriidanyliak/TaDa/subscribers","subscription_url":"https://api.github.com/repos/yuriidanyliak/TaDa/subscription","commits_url":"https://api.github.com/repos/yuriidanyliak/TaDa/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuriidanyliak/TaDa/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuriidanyliak/TaDa/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuriidanyliak/TaDa/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuriidanyliak/TaDa/contents/{+path}","compare_url":"https://api.github.com/repos/yuriidanyliak/TaDa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuriidanyliak/TaDa/merges","archive_url":"https://api.github.com/repos/yuriidanyliak/TaDa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuriidanyliak/TaDa/downloads","issues_url":"https://api.github.com/repos/yuriidanyliak/TaDa/issues{/number}","pulls_url":"https://api.github.com/repos/yuriidanyliak/TaDa/pulls{/number}","milestones_url":"https://api.github.com/repos/yuriidanyliak/TaDa/milestones{/number}","notifications_url":"https://api.github.com/repos/yuriidanyliak/TaDa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuriidanyliak/TaDa/labels{/name}","releases_url":"https://api.github.com/repos/yuriidanyliak/TaDa/releases{/id}","created_at":"2015-04-29T17:06:22Z","updated_at":"2015-05-27T09:52:13Z","pushed_at":"2015-06-03T11:45:03Z","git_url":"git://github.com/yuriidanyliak/TaDa.git","ssh_url":"git@github.com:yuriidanyliak/TaDa.git","clone_url":"https://github.com/yuriidanyliak/TaDa.git","svn_url":"https://github.com/yuriidanyliak/TaDa","homepage":null,"size":3444,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yuriidanyliak/TaDa/pulls/12"},"html":{"href":"https://github.com/yuriidanyliak/TaDa/pull/12"},"issue":{"href":"https://api.github.com/repos/yuriidanyliak/TaDa/issues/12"},"comments":{"href":"https://api.github.com/repos/yuriidanyliak/TaDa/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/yuriidanyliak/TaDa/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/yuriidanyliak/TaDa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yuriidanyliak/TaDa/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/yuriidanyliak/TaDa/statuses/fa0589ce55268519ed7bc7bb3ac4794224705ad2"}}}}