GitHub PullRequestReviewCommentEvent at 2014-04-17 13:34:30
Repository: open-data-certificate
Actor: houndci
Payload: {"comment":{"url":"https://api.github.com/repos/theodi/open-data-certificate/pulls/comments/11731793","id":11731793,"diff_hunk":"@@ -0,0 +1,24 @@\n+class ChangeOglukLicenceId < ActiveRecord::Migration\n+  def up\n+    data = Answer.joins(:question).where(questions: {:reference_identifier => 'dataLicence'}).readonly(false)\n+    \n+    data.each do |d|\n+      case d.reference_identifier\n+      when \"ogl_uk\"\n+        d.update_attributes(:reference_identifier => \"uk_ogl\")\n+      end\n+    end\n+    \n+    content = Answer.joins(:question).where(questions: {:reference_identifier => 'contentLicence'}).readonly(false)\n+    \n+    content.each do |c|    \n+      case c.reference_identifier\n+      when \"ogl_uk\"\n+        c.update_attributes(:reference_identifier => \"uk_ogl\")","path":"db/migrate/20140417131622_change_ogluk_licence_id.rb","position":17,"original_position":17,"commit_id":"57d691e503d7c4861713de457809a869ea7dc1fb","original_commit_id":"57d691e503d7c4861713de457809a869ea7dc1fb","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?","gravatar_id":"38d9cefd9971a05bf447f07c6cd332cc","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Use the new Ruby 1.9 hash syntax.<br>Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2014-04-17T13:34:30Z","updated_at":"2014-04-17T13:34:30Z","html_url":"https://github.com/theodi/open-data-certificate/pull/772#discussion_r11731793","pull_request_url":"https://api.github.com/repos/theodi/open-data-certificate/pulls/772","_links":{"self":{"href":"https://api.github.com/repos/theodi/open-data-certificate/pulls/comments/11731793"},"html":{"href":"https://github.com/theodi/open-data-certificate/pull/772#discussion_r11731793"},"pull_request":{"href":"https://api.github.com/repos/theodi/open-data-certificate/pulls/772"}}}}