{"action":"created","comment":{"url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/pulls/comments/67421085","id":67421085,"diff_hunk":"@@ -0,0 +1,23 @@\n+class ConvertEventPayloads < ActiveRecord::Migration\n+  class EventMigration < ActiveRecord::Base\n+    self.table_name = :event_capture_events\n+\n+    serialize :payload\n+  end\n+\n+  def up\n+    EventMigration.find_each do |event|\n+      next unless event.payload.respond_to?(:to_unsafe_h)\n+\n+      # Use 'update_column' because with 'update' ActiveRecord will try to\n+      # deserialize the existing value first, and will detect that there are\n+      # two identical Hashes. Use 'to_unsafe_h' because otherwise all keys\n+      # will be deemed unsafe, having not been permitted via the strong\n+      # parameters API.\n+      event.update_column :payload, event.payload.to_unsafe_h\n+    end\n+  end\n+\n+  def down","path":"db/migrate/20160616201120_convert_event_payloads.rb","position":21,"original_position":21,"commit_id":"49705b8c875906b3afaf4d3925d77683df896f1a","original_commit_id":"49705b8c875906b3afaf4d3925d77683df896f1a","user":{"login":"michaelwehrley","id":526136,"avatar_url":"https://avatars.githubusercontent.com/u/526136?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelwehrley","html_url":"https://github.com/michaelwehrley","followers_url":"https://api.github.com/users/michaelwehrley/followers","following_url":"https://api.github.com/users/michaelwehrley/following{/other_user}","gists_url":"https://api.github.com/users/michaelwehrley/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelwehrley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelwehrley/subscriptions","organizations_url":"https://api.github.com/users/michaelwehrley/orgs","repos_url":"https://api.github.com/users/michaelwehrley/repos","events_url":"https://api.github.com/users/michaelwehrley/events{/privacy}","received_events_url":"https://api.github.com/users/michaelwehrley/received_events","type":"User","site_admin":false},"body":"I think you can leave `down` out and you will still be able to roll the migraiton back.","created_at":"2016-06-16T20:47:54Z","updated_at":"2016-06-16T20:47:54Z","html_url":"https://github.com/NU-CBITS/think_feel_do_engine/pull/414#discussion_r67421085","pull_request_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/pulls/414","_links":{"self":{"href":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/pulls/comments/67421085"},"html":{"href":"https://github.com/NU-CBITS/think_feel_do_engine/pull/414#discussion_r67421085"},"pull_request":{"href":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/pulls/414"}}},"pull_request":{"url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/pulls/414","id":74146208,"html_url":"https://github.com/NU-CBITS/think_feel_do_engine/pull/414","diff_url":"https://github.com/NU-CBITS/think_feel_do_engine/pull/414.diff","patch_url":"https://github.com/NU-CBITS/think_feel_do_engine/pull/414.patch","issue_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/issues/414","number":414,"state":"open","locked":false,"title":"convert existing Events to use Hash for payloads","user":{"login":"ericcf","id":58693,"avatar_url":"https://avatars.githubusercontent.com/u/58693?v=3","gravatar_id":"","url":"https://api.github.com/users/ericcf","html_url":"https://github.com/ericcf","followers_url":"https://api.github.com/users/ericcf/followers","following_url":"https://api.github.com/users/ericcf/following{/other_user}","gists_url":"https://api.github.com/users/ericcf/gists{/gist_id}","starred_url":"https://api.github.com/users/ericcf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericcf/subscriptions","organizations_url":"https://api.github.com/users/ericcf/orgs","repos_url":"https://api.github.com/users/ericcf/repos","events_url":"https://api.github.com/users/ericcf/events{/privacy}","received_events_url":"https://api.github.com/users/ericcf/received_events","type":"User","site_admin":false},"body":"* this is forwards compatible with Rails 5","created_at":"2016-06-16T20:26:16Z","updated_at":"2016-06-16T20:47:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8530a0f40b68a11ab39b3784d46df343fc10959d","assignee":{"login":"michaelwehrley","id":526136,"avatar_url":"https://avatars.githubusercontent.com/u/526136?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelwehrley","html_url":"https://github.com/michaelwehrley","followers_url":"https://api.github.com/users/michaelwehrley/followers","following_url":"https://api.github.com/users/michaelwehrley/following{/other_user}","gists_url":"https://api.github.com/users/michaelwehrley/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelwehrley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelwehrley/subscriptions","organizations_url":"https://api.github.com/users/michaelwehrley/orgs","repos_url":"https://api.github.com/users/michaelwehrley/repos","events_url":"https://api.github.com/users/michaelwehrley/events{/privacy}","received_events_url":"https://api.github.com/users/michaelwehrley/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/pulls/414/commits","review_comments_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/pulls/414/comments","review_comment_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/issues/414/comments","statuses_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/statuses/49705b8c875906b3afaf4d3925d77683df896f1a","head":{"label":"NU-CBITS:ecf-event-payload-hash","ref":"ecf-event-payload-hash","sha":"49705b8c875906b3afaf4d3925d77683df896f1a","user":{"login":"NU-CBITS","id":3345230,"avatar_url":"https://avatars.githubusercontent.com/u/3345230?v=3","gravatar_id":"","url":"https://api.github.com/users/NU-CBITS","html_url":"https://github.com/NU-CBITS","followers_url":"https://api.github.com/users/NU-CBITS/followers","following_url":"https://api.github.com/users/NU-CBITS/following{/other_user}","gists_url":"https://api.github.com/users/NU-CBITS/gists{/gist_id}","starred_url":"https://api.github.com/users/NU-CBITS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NU-CBITS/subscriptions","organizations_url":"https://api.github.com/users/NU-CBITS/orgs","repos_url":"https://api.github.com/users/NU-CBITS/repos","events_url":"https://api.github.com/users/NU-CBITS/events{/privacy}","received_events_url":"https://api.github.com/users/NU-CBITS/received_events","type":"Organization","site_admin":false},"repo":{"id":24353466,"name":"think_feel_do_engine","full_name":"NU-CBITS/think_feel_do_engine","owner":{"login":"NU-CBITS","id":3345230,"avatar_url":"https://avatars.githubusercontent.com/u/3345230?v=3","gravatar_id":"","url":"https://api.github.com/users/NU-CBITS","html_url":"https://github.com/NU-CBITS","followers_url":"https://api.github.com/users/NU-CBITS/followers","following_url":"https://api.github.com/users/NU-CBITS/following{/other_user}","gists_url":"https://api.github.com/users/NU-CBITS/gists{/gist_id}","starred_url":"https://api.github.com/users/NU-CBITS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NU-CBITS/subscriptions","organizations_url":"https://api.github.com/users/NU-CBITS/orgs","repos_url":"https://api.github.com/users/NU-CBITS/repos","events_url":"https://api.github.com/users/NU-CBITS/events{/privacy}","received_events_url":"https://api.github.com/users/NU-CBITS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NU-CBITS/think_feel_do_engine","description":"","fork":false,"url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine","forks_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/forks","keys_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/teams","hooks_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/hooks","issue_events_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/issues/events{/number}","events_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/events","assignees_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/assignees{/user}","branches_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/branches{/branch}","tags_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/tags","blobs_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/languages","stargazers_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/stargazers","contributors_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/contributors","subscribers_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/subscribers","subscription_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/subscription","commits_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/contents/{+path}","compare_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/merges","archive_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/downloads","issues_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/issues{/number}","pulls_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/labels{/name}","releases_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/releases{/id}","deployments_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/deployments","created_at":"2014-09-23T02:18:05Z","updated_at":"2016-05-23T13:30:59Z","pushed_at":"2016-06-16T20:26:16Z","git_url":"git://github.com/NU-CBITS/think_feel_do_engine.git","ssh_url":"git@github.com:NU-CBITS/think_feel_do_engine.git","clone_url":"https://github.com/NU-CBITS/think_feel_do_engine.git","svn_url":"https://github.com/NU-CBITS/think_feel_do_engine","homepage":null,"size":3522,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"NU-CBITS:master","ref":"master","sha":"69cbdab0609063e8ecebb1c57efac8eaced6f3ed","user":{"login":"NU-CBITS","id":3345230,"avatar_url":"https://avatars.githubusercontent.com/u/3345230?v=3","gravatar_id":"","url":"https://api.github.com/users/NU-CBITS","html_url":"https://github.com/NU-CBITS","followers_url":"https://api.github.com/users/NU-CBITS/followers","following_url":"https://api.github.com/users/NU-CBITS/following{/other_user}","gists_url":"https://api.github.com/users/NU-CBITS/gists{/gist_id}","starred_url":"https://api.github.com/users/NU-CBITS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NU-CBITS/subscriptions","organizations_url":"https://api.github.com/users/NU-CBITS/orgs","repos_url":"https://api.github.com/users/NU-CBITS/repos","events_url":"https://api.github.com/users/NU-CBITS/events{/privacy}","received_events_url":"https://api.github.com/users/NU-CBITS/received_events","type":"Organization","site_admin":false},"repo":{"id":24353466,"name":"think_feel_do_engine","full_name":"NU-CBITS/think_feel_do_engine","owner":{"login":"NU-CBITS","id":3345230,"avatar_url":"https://avatars.githubusercontent.com/u/3345230?v=3","gravatar_id":"","url":"https://api.github.com/users/NU-CBITS","html_url":"https://github.com/NU-CBITS","followers_url":"https://api.github.com/users/NU-CBITS/followers","following_url":"https://api.github.com/users/NU-CBITS/following{/other_user}","gists_url":"https://api.github.com/users/NU-CBITS/gists{/gist_id}","starred_url":"https://api.github.com/users/NU-CBITS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NU-CBITS/subscriptions","organizations_url":"https://api.github.com/users/NU-CBITS/orgs","repos_url":"https://api.github.com/users/NU-CBITS/repos","events_url":"https://api.github.com/users/NU-CBITS/events{/privacy}","received_events_url":"https://api.github.com/users/NU-CBITS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NU-CBITS/think_feel_do_engine","description":"","fork":false,"url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine","forks_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/forks","keys_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/teams","hooks_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/hooks","issue_events_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/issues/events{/number}","events_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/events","assignees_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/assignees{/user}","branches_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/branches{/branch}","tags_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/tags","blobs_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/languages","stargazers_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/stargazers","contributors_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/contributors","subscribers_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/subscribers","subscription_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/subscription","commits_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/contents/{+path}","compare_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/merges","archive_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/downloads","issues_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/issues{/number}","pulls_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/labels{/name}","releases_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/releases{/id}","deployments_url":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/deployments","created_at":"2014-09-23T02:18:05Z","updated_at":"2016-05-23T13:30:59Z","pushed_at":"2016-06-16T20:26:16Z","git_url":"git://github.com/NU-CBITS/think_feel_do_engine.git","ssh_url":"git@github.com:NU-CBITS/think_feel_do_engine.git","clone_url":"https://github.com/NU-CBITS/think_feel_do_engine.git","svn_url":"https://github.com/NU-CBITS/think_feel_do_engine","homepage":null,"size":3522,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/pulls/414"},"html":{"href":"https://github.com/NU-CBITS/think_feel_do_engine/pull/414"},"issue":{"href":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/issues/414"},"comments":{"href":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/issues/414/comments"},"review_comments":{"href":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/pulls/414/comments"},"review_comment":{"href":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/pulls/414/commits"},"statuses":{"href":"https://api.github.com/repos/NU-CBITS/think_feel_do_engine/statuses/49705b8c875906b3afaf4d3925d77683df896f1a"}}}}
{"actor":{"display_login":"michaelwehrley"}}