{"action":"created","comment":{"url":"https://api.github.com/repos/figocia/myflix/pulls/comments/29043311","id":29043311,"diff_hunk":"@@ -0,0 +1,10 @@\n+class AddColumnToUsers < ActiveRecord::Migration\n+  def change\n+    add_column :users, :token, :string\n+\n+    User.all.each do |user| ","path":"db/migrate/20150421084325_add_column_to_users.rb","position":5,"original_position":5,"commit_id":"89d503e60795a99bdfc1f254b70c9a699edc5ef3","original_commit_id":"89d503e60795a99bdfc1f254b70c9a699edc5ef3","user":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"body":"Mixing data migration with schema migration is not the greatest approach. For data migrations, I would recommend creating a custom rake task and not mix this into schema migrations. Check this guide: http://guides.rubyonrails.org/command_line.html#custom-rake-tasks","created_at":"2015-04-24T12:09:40Z","updated_at":"2015-04-24T12:09:40Z","html_url":"https://github.com/figocia/myflix/pull/5#discussion_r29043311","pull_request_url":"https://api.github.com/repos/figocia/myflix/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/figocia/myflix/pulls/comments/29043311"},"html":{"href":"https://github.com/figocia/myflix/pull/5#discussion_r29043311"},"pull_request":{"href":"https://api.github.com/repos/figocia/myflix/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/figocia/myflix/pulls/5","id":34040585,"html_url":"https://github.com/figocia/myflix/pull/5","diff_url":"https://github.com/figocia/myflix/pull/5.diff","patch_url":"https://github.com/figocia/myflix/pull/5.patch","issue_url":"https://api.github.com/repos/figocia/myflix/issues/5","number":5,"state":"open","locked":false,"title":"Email sending","user":{"login":"figocia","id":650360,"avatar_url":"https://avatars.githubusercontent.com/u/650360?v=3","gravatar_id":"","url":"https://api.github.com/users/figocia","html_url":"https://github.com/figocia","followers_url":"https://api.github.com/users/figocia/followers","following_url":"https://api.github.com/users/figocia/following{/other_user}","gists_url":"https://api.github.com/users/figocia/gists{/gist_id}","starred_url":"https://api.github.com/users/figocia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/figocia/subscriptions","organizations_url":"https://api.github.com/users/figocia/orgs","repos_url":"https://api.github.com/users/figocia/repos","events_url":"https://api.github.com/users/figocia/events{/privacy}","received_events_url":"https://api.github.com/users/figocia/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-24T11:36:23Z","updated_at":"2015-04-24T12:09:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"174cbc415f865cd5b2d6a3b6718ce2996e38fb2a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/figocia/myflix/pulls/5/commits","review_comments_url":"https://api.github.com/repos/figocia/myflix/pulls/5/comments","review_comment_url":"https://api.github.com/repos/figocia/myflix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/figocia/myflix/issues/5/comments","statuses_url":"https://api.github.com/repos/figocia/myflix/statuses/89d503e60795a99bdfc1f254b70c9a699edc5ef3","head":{"label":"figocia:email_sending","ref":"email_sending","sha":"89d503e60795a99bdfc1f254b70c9a699edc5ef3","user":{"login":"figocia","id":650360,"avatar_url":"https://avatars.githubusercontent.com/u/650360?v=3","gravatar_id":"","url":"https://api.github.com/users/figocia","html_url":"https://github.com/figocia","followers_url":"https://api.github.com/users/figocia/followers","following_url":"https://api.github.com/users/figocia/following{/other_user}","gists_url":"https://api.github.com/users/figocia/gists{/gist_id}","starred_url":"https://api.github.com/users/figocia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/figocia/subscriptions","organizations_url":"https://api.github.com/users/figocia/orgs","repos_url":"https://api.github.com/users/figocia/repos","events_url":"https://api.github.com/users/figocia/events{/privacy}","received_events_url":"https://api.github.com/users/figocia/received_events","type":"User","site_admin":false},"repo":{"id":20631477,"name":"myflix","full_name":"figocia/myflix","owner":{"login":"figocia","id":650360,"avatar_url":"https://avatars.githubusercontent.com/u/650360?v=3","gravatar_id":"","url":"https://api.github.com/users/figocia","html_url":"https://github.com/figocia","followers_url":"https://api.github.com/users/figocia/followers","following_url":"https://api.github.com/users/figocia/following{/other_user}","gists_url":"https://api.github.com/users/figocia/gists{/gist_id}","starred_url":"https://api.github.com/users/figocia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/figocia/subscriptions","organizations_url":"https://api.github.com/users/figocia/orgs","repos_url":"https://api.github.com/users/figocia/repos","events_url":"https://api.github.com/users/figocia/events{/privacy}","received_events_url":"https://api.github.com/users/figocia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/figocia/myflix","description":"","fork":true,"url":"https://api.github.com/repos/figocia/myflix","forks_url":"https://api.github.com/repos/figocia/myflix/forks","keys_url":"https://api.github.com/repos/figocia/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/figocia/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/figocia/myflix/teams","hooks_url":"https://api.github.com/repos/figocia/myflix/hooks","issue_events_url":"https://api.github.com/repos/figocia/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/figocia/myflix/events","assignees_url":"https://api.github.com/repos/figocia/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/figocia/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/figocia/myflix/tags","blobs_url":"https://api.github.com/repos/figocia/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/figocia/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/figocia/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/figocia/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/figocia/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/figocia/myflix/languages","stargazers_url":"https://api.github.com/repos/figocia/myflix/stargazers","contributors_url":"https://api.github.com/repos/figocia/myflix/contributors","subscribers_url":"https://api.github.com/repos/figocia/myflix/subscribers","subscription_url":"https://api.github.com/repos/figocia/myflix/subscription","commits_url":"https://api.github.com/repos/figocia/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/figocia/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/figocia/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/figocia/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/figocia/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/figocia/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/figocia/myflix/merges","archive_url":"https://api.github.com/repos/figocia/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/figocia/myflix/downloads","issues_url":"https://api.github.com/repos/figocia/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/figocia/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/figocia/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/figocia/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/figocia/myflix/labels{/name}","releases_url":"https://api.github.com/repos/figocia/myflix/releases{/id}","created_at":"2014-06-09T01:55:00Z","updated_at":"2015-04-17T12:17:26Z","pushed_at":"2015-04-24T11:36:23Z","git_url":"git://github.com/figocia/myflix.git","ssh_url":"git@github.com:figocia/myflix.git","clone_url":"https://github.com/figocia/myflix.git","svn_url":"https://github.com/figocia/myflix","homepage":null,"size":538,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"figocia:master","ref":"master","sha":"f7526eab5da17333297f006f2a915700647864cb","user":{"login":"figocia","id":650360,"avatar_url":"https://avatars.githubusercontent.com/u/650360?v=3","gravatar_id":"","url":"https://api.github.com/users/figocia","html_url":"https://github.com/figocia","followers_url":"https://api.github.com/users/figocia/followers","following_url":"https://api.github.com/users/figocia/following{/other_user}","gists_url":"https://api.github.com/users/figocia/gists{/gist_id}","starred_url":"https://api.github.com/users/figocia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/figocia/subscriptions","organizations_url":"https://api.github.com/users/figocia/orgs","repos_url":"https://api.github.com/users/figocia/repos","events_url":"https://api.github.com/users/figocia/events{/privacy}","received_events_url":"https://api.github.com/users/figocia/received_events","type":"User","site_admin":false},"repo":{"id":20631477,"name":"myflix","full_name":"figocia/myflix","owner":{"login":"figocia","id":650360,"avatar_url":"https://avatars.githubusercontent.com/u/650360?v=3","gravatar_id":"","url":"https://api.github.com/users/figocia","html_url":"https://github.com/figocia","followers_url":"https://api.github.com/users/figocia/followers","following_url":"https://api.github.com/users/figocia/following{/other_user}","gists_url":"https://api.github.com/users/figocia/gists{/gist_id}","starred_url":"https://api.github.com/users/figocia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/figocia/subscriptions","organizations_url":"https://api.github.com/users/figocia/orgs","repos_url":"https://api.github.com/users/figocia/repos","events_url":"https://api.github.com/users/figocia/events{/privacy}","received_events_url":"https://api.github.com/users/figocia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/figocia/myflix","description":"","fork":true,"url":"https://api.github.com/repos/figocia/myflix","forks_url":"https://api.github.com/repos/figocia/myflix/forks","keys_url":"https://api.github.com/repos/figocia/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/figocia/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/figocia/myflix/teams","hooks_url":"https://api.github.com/repos/figocia/myflix/hooks","issue_events_url":"https://api.github.com/repos/figocia/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/figocia/myflix/events","assignees_url":"https://api.github.com/repos/figocia/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/figocia/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/figocia/myflix/tags","blobs_url":"https://api.github.com/repos/figocia/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/figocia/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/figocia/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/figocia/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/figocia/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/figocia/myflix/languages","stargazers_url":"https://api.github.com/repos/figocia/myflix/stargazers","contributors_url":"https://api.github.com/repos/figocia/myflix/contributors","subscribers_url":"https://api.github.com/repos/figocia/myflix/subscribers","subscription_url":"https://api.github.com/repos/figocia/myflix/subscription","commits_url":"https://api.github.com/repos/figocia/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/figocia/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/figocia/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/figocia/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/figocia/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/figocia/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/figocia/myflix/merges","archive_url":"https://api.github.com/repos/figocia/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/figocia/myflix/downloads","issues_url":"https://api.github.com/repos/figocia/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/figocia/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/figocia/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/figocia/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/figocia/myflix/labels{/name}","releases_url":"https://api.github.com/repos/figocia/myflix/releases{/id}","created_at":"2014-06-09T01:55:00Z","updated_at":"2015-04-17T12:17:26Z","pushed_at":"2015-04-24T11:36:23Z","git_url":"git://github.com/figocia/myflix.git","ssh_url":"git@github.com:figocia/myflix.git","clone_url":"https://github.com/figocia/myflix.git","svn_url":"https://github.com/figocia/myflix","homepage":null,"size":538,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/figocia/myflix/pulls/5"},"html":{"href":"https://github.com/figocia/myflix/pull/5"},"issue":{"href":"https://api.github.com/repos/figocia/myflix/issues/5"},"comments":{"href":"https://api.github.com/repos/figocia/myflix/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/figocia/myflix/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/figocia/myflix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/figocia/myflix/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/figocia/myflix/statuses/89d503e60795a99bdfc1f254b70c9a699edc5ef3"}}}}