{"action":"created","comment":{"url":"https://api.github.com/repos/hanocha/awesome_events/pulls/comments/65018227","id":65018227,"diff_hunk":"@@ -0,0 +1,5 @@\n+class FixEvent < ActiveRecord::Migration","path":"db/migrate/20160527051803_fix_event.rb","position":1,"original_position":1,"commit_id":"f231c27da8069a93fec9fc05a57640607a680def","original_commit_id":"f231c27da8069a93fec9fc05a57640607a680def","user":{"login":"hanocha","id":5087172,"avatar_url":"https://avatars.githubusercontent.com/u/5087172?v=3","gravatar_id":"","url":"https://api.github.com/users/hanocha","html_url":"https://github.com/hanocha","followers_url":"https://api.github.com/users/hanocha/followers","following_url":"https://api.github.com/users/hanocha/following{/other_user}","gists_url":"https://api.github.com/users/hanocha/gists{/gist_id}","starred_url":"https://api.github.com/users/hanocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanocha/subscriptions","organizations_url":"https://api.github.com/users/hanocha/orgs","repos_url":"https://api.github.com/users/hanocha/repos","events_url":"https://api.github.com/users/hanocha/events{/privacy}","received_events_url":"https://api.github.com/users/hanocha/received_events","type":"User","site_admin":false},"body":"調べたところ、もっと行う操作を具体的に示すような命名が基本のようでした。\r\n今回の例であれば、`rename_endtime_column_to_events`といった感じになると思います。\r\n\r\n`行う操作_変更対象カラム名_column_to_テーブル名`、\r\nなどが基本形のようです。","created_at":"2016-05-30T02:30:39Z","updated_at":"2016-05-30T02:30:39Z","html_url":"https://github.com/hanocha/awesome_events/pull/7#discussion_r65018227","pull_request_url":"https://api.github.com/repos/hanocha/awesome_events/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/hanocha/awesome_events/pulls/comments/65018227"},"html":{"href":"https://github.com/hanocha/awesome_events/pull/7#discussion_r65018227"},"pull_request":{"href":"https://api.github.com/repos/hanocha/awesome_events/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/hanocha/awesome_events/pulls/7","id":71654966,"html_url":"https://github.com/hanocha/awesome_events/pull/7","diff_url":"https://github.com/hanocha/awesome_events/pull/7.diff","patch_url":"https://github.com/hanocha/awesome_events/pull/7.patch","issue_url":"https://api.github.com/repos/hanocha/awesome_events/issues/7","number":7,"state":"open","locked":false,"title":"イベントモデルのバリデーションとそのテストを実装","user":{"login":"hanocha","id":5087172,"avatar_url":"https://avatars.githubusercontent.com/u/5087172?v=3","gravatar_id":"","url":"https://api.github.com/users/hanocha","html_url":"https://github.com/hanocha","followers_url":"https://api.github.com/users/hanocha/followers","following_url":"https://api.github.com/users/hanocha/following{/other_user}","gists_url":"https://api.github.com/users/hanocha/gists{/gist_id}","starred_url":"https://api.github.com/users/hanocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanocha/subscriptions","organizations_url":"https://api.github.com/users/hanocha/orgs","repos_url":"https://api.github.com/users/hanocha/repos","events_url":"https://api.github.com/users/hanocha/events{/privacy}","received_events_url":"https://api.github.com/users/hanocha/received_events","type":"User","site_admin":false},"body":"# やりたいこと\r\n\r\nパRails P184にある、\r\n\r\n- name, place, start_time, end_time, contentの入力は必須\r\n- nameは50文字以下\r\n- placeは100文字以下\r\n- contentは2000文字以下\r\n- start_timeはend_timeよりも前の時間\r\n\r\nというバリデーションのテストを実装し、その後対応するテストを実装する。\r\n\r\nこれらのテストを実装するにあたって、(満を持して)shoulda-matchersを利用する。\r\n\r\n# やること\r\n\r\n- [x] shoulda-matchersをインストール\r\n- [x] 必須項目チェックに関するテストを記述\r\n- [x] 必須項目チェックのバリデーションを記述\r\n- [x] 必須項目チェックのテストが通ることを確認\r\n- [x] nameの制約に関するテストとバリデーションの実装、確認\r\n- [x] placeの制約に関するテストとバリデーションの実装、確認\r\n- [x] contentの制約に関するテストとバリデーションの実装、確認\r\n- [x] start_timeとend_timeの制約に関するテストとバリデーションの実装、確認","created_at":"2016-05-27T03:17:26Z","updated_at":"2016-05-30T02:30:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7920c4550717c5998c4e2d50ec5b23fe679386d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hanocha/awesome_events/pulls/7/commits","review_comments_url":"https://api.github.com/repos/hanocha/awesome_events/pulls/7/comments","review_comment_url":"https://api.github.com/repos/hanocha/awesome_events/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hanocha/awesome_events/issues/7/comments","statuses_url":"https://api.github.com/repos/hanocha/awesome_events/statuses/f231c27da8069a93fec9fc05a57640607a680def","head":{"label":"hanocha:add-event-model-validation","ref":"add-event-model-validation","sha":"f231c27da8069a93fec9fc05a57640607a680def","user":{"login":"hanocha","id":5087172,"avatar_url":"https://avatars.githubusercontent.com/u/5087172?v=3","gravatar_id":"","url":"https://api.github.com/users/hanocha","html_url":"https://github.com/hanocha","followers_url":"https://api.github.com/users/hanocha/followers","following_url":"https://api.github.com/users/hanocha/following{/other_user}","gists_url":"https://api.github.com/users/hanocha/gists{/gist_id}","starred_url":"https://api.github.com/users/hanocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanocha/subscriptions","organizations_url":"https://api.github.com/users/hanocha/orgs","repos_url":"https://api.github.com/users/hanocha/repos","events_url":"https://api.github.com/users/hanocha/events{/privacy}","received_events_url":"https://api.github.com/users/hanocha/received_events","type":"User","site_admin":false},"repo":{"id":59564476,"name":"awesome_events","full_name":"hanocha/awesome_events","owner":{"login":"hanocha","id":5087172,"avatar_url":"https://avatars.githubusercontent.com/u/5087172?v=3","gravatar_id":"","url":"https://api.github.com/users/hanocha","html_url":"https://github.com/hanocha","followers_url":"https://api.github.com/users/hanocha/followers","following_url":"https://api.github.com/users/hanocha/following{/other_user}","gists_url":"https://api.github.com/users/hanocha/gists{/gist_id}","starred_url":"https://api.github.com/users/hanocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanocha/subscriptions","organizations_url":"https://api.github.com/users/hanocha/orgs","repos_url":"https://api.github.com/users/hanocha/repos","events_url":"https://api.github.com/users/hanocha/events{/privacy}","received_events_url":"https://api.github.com/users/hanocha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hanocha/awesome_events","description":"awesome awesome awesome.","fork":false,"url":"https://api.github.com/repos/hanocha/awesome_events","forks_url":"https://api.github.com/repos/hanocha/awesome_events/forks","keys_url":"https://api.github.com/repos/hanocha/awesome_events/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hanocha/awesome_events/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hanocha/awesome_events/teams","hooks_url":"https://api.github.com/repos/hanocha/awesome_events/hooks","issue_events_url":"https://api.github.com/repos/hanocha/awesome_events/issues/events{/number}","events_url":"https://api.github.com/repos/hanocha/awesome_events/events","assignees_url":"https://api.github.com/repos/hanocha/awesome_events/assignees{/user}","branches_url":"https://api.github.com/repos/hanocha/awesome_events/branches{/branch}","tags_url":"https://api.github.com/repos/hanocha/awesome_events/tags","blobs_url":"https://api.github.com/repos/hanocha/awesome_events/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hanocha/awesome_events/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hanocha/awesome_events/git/refs{/sha}","trees_url":"https://api.github.com/repos/hanocha/awesome_events/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hanocha/awesome_events/statuses/{sha}","languages_url":"https://api.github.com/repos/hanocha/awesome_events/languages","stargazers_url":"https://api.github.com/repos/hanocha/awesome_events/stargazers","contributors_url":"https://api.github.com/repos/hanocha/awesome_events/contributors","subscribers_url":"https://api.github.com/repos/hanocha/awesome_events/subscribers","subscription_url":"https://api.github.com/repos/hanocha/awesome_events/subscription","commits_url":"https://api.github.com/repos/hanocha/awesome_events/commits{/sha}","git_commits_url":"https://api.github.com/repos/hanocha/awesome_events/git/commits{/sha}","comments_url":"https://api.github.com/repos/hanocha/awesome_events/comments{/number}","issue_comment_url":"https://api.github.com/repos/hanocha/awesome_events/issues/comments{/number}","contents_url":"https://api.github.com/repos/hanocha/awesome_events/contents/{+path}","compare_url":"https://api.github.com/repos/hanocha/awesome_events/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hanocha/awesome_events/merges","archive_url":"https://api.github.com/repos/hanocha/awesome_events/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hanocha/awesome_events/downloads","issues_url":"https://api.github.com/repos/hanocha/awesome_events/issues{/number}","pulls_url":"https://api.github.com/repos/hanocha/awesome_events/pulls{/number}","milestones_url":"https://api.github.com/repos/hanocha/awesome_events/milestones{/number}","notifications_url":"https://api.github.com/repos/hanocha/awesome_events/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hanocha/awesome_events/labels{/name}","releases_url":"https://api.github.com/repos/hanocha/awesome_events/releases{/id}","deployments_url":"https://api.github.com/repos/hanocha/awesome_events/deployments","created_at":"2016-05-24T10:40:58Z","updated_at":"2016-05-25T02:03:40Z","pushed_at":"2016-05-30T01:55:47Z","git_url":"git://github.com/hanocha/awesome_events.git","ssh_url":"git@github.com:hanocha/awesome_events.git","clone_url":"https://github.com/hanocha/awesome_events.git","svn_url":"https://github.com/hanocha/awesome_events","homepage":null,"size":96,"stargazers_count":1,"watchers_count":1,"language":"Ruby","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":1,"default_branch":"master"}},"base":{"label":"hanocha:master","ref":"master","sha":"e348c580c90dd2cdacf264c957620fde3d4ef342","user":{"login":"hanocha","id":5087172,"avatar_url":"https://avatars.githubusercontent.com/u/5087172?v=3","gravatar_id":"","url":"https://api.github.com/users/hanocha","html_url":"https://github.com/hanocha","followers_url":"https://api.github.com/users/hanocha/followers","following_url":"https://api.github.com/users/hanocha/following{/other_user}","gists_url":"https://api.github.com/users/hanocha/gists{/gist_id}","starred_url":"https://api.github.com/users/hanocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanocha/subscriptions","organizations_url":"https://api.github.com/users/hanocha/orgs","repos_url":"https://api.github.com/users/hanocha/repos","events_url":"https://api.github.com/users/hanocha/events{/privacy}","received_events_url":"https://api.github.com/users/hanocha/received_events","type":"User","site_admin":false},"repo":{"id":59564476,"name":"awesome_events","full_name":"hanocha/awesome_events","owner":{"login":"hanocha","id":5087172,"avatar_url":"https://avatars.githubusercontent.com/u/5087172?v=3","gravatar_id":"","url":"https://api.github.com/users/hanocha","html_url":"https://github.com/hanocha","followers_url":"https://api.github.com/users/hanocha/followers","following_url":"https://api.github.com/users/hanocha/following{/other_user}","gists_url":"https://api.github.com/users/hanocha/gists{/gist_id}","starred_url":"https://api.github.com/users/hanocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanocha/subscriptions","organizations_url":"https://api.github.com/users/hanocha/orgs","repos_url":"https://api.github.com/users/hanocha/repos","events_url":"https://api.github.com/users/hanocha/events{/privacy}","received_events_url":"https://api.github.com/users/hanocha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hanocha/awesome_events","description":"awesome awesome awesome.","fork":false,"url":"https://api.github.com/repos/hanocha/awesome_events","forks_url":"https://api.github.com/repos/hanocha/awesome_events/forks","keys_url":"https://api.github.com/repos/hanocha/awesome_events/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hanocha/awesome_events/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hanocha/awesome_events/teams","hooks_url":"https://api.github.com/repos/hanocha/awesome_events/hooks","issue_events_url":"https://api.github.com/repos/hanocha/awesome_events/issues/events{/number}","events_url":"https://api.github.com/repos/hanocha/awesome_events/events","assignees_url":"https://api.github.com/repos/hanocha/awesome_events/assignees{/user}","branches_url":"https://api.github.com/repos/hanocha/awesome_events/branches{/branch}","tags_url":"https://api.github.com/repos/hanocha/awesome_events/tags","blobs_url":"https://api.github.com/repos/hanocha/awesome_events/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hanocha/awesome_events/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hanocha/awesome_events/git/refs{/sha}","trees_url":"https://api.github.com/repos/hanocha/awesome_events/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hanocha/awesome_events/statuses/{sha}","languages_url":"https://api.github.com/repos/hanocha/awesome_events/languages","stargazers_url":"https://api.github.com/repos/hanocha/awesome_events/stargazers","contributors_url":"https://api.github.com/repos/hanocha/awesome_events/contributors","subscribers_url":"https://api.github.com/repos/hanocha/awesome_events/subscribers","subscription_url":"https://api.github.com/repos/hanocha/awesome_events/subscription","commits_url":"https://api.github.com/repos/hanocha/awesome_events/commits{/sha}","git_commits_url":"https://api.github.com/repos/hanocha/awesome_events/git/commits{/sha}","comments_url":"https://api.github.com/repos/hanocha/awesome_events/comments{/number}","issue_comment_url":"https://api.github.com/repos/hanocha/awesome_events/issues/comments{/number}","contents_url":"https://api.github.com/repos/hanocha/awesome_events/contents/{+path}","compare_url":"https://api.github.com/repos/hanocha/awesome_events/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hanocha/awesome_events/merges","archive_url":"https://api.github.com/repos/hanocha/awesome_events/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hanocha/awesome_events/downloads","issues_url":"https://api.github.com/repos/hanocha/awesome_events/issues{/number}","pulls_url":"https://api.github.com/repos/hanocha/awesome_events/pulls{/number}","milestones_url":"https://api.github.com/repos/hanocha/awesome_events/milestones{/number}","notifications_url":"https://api.github.com/repos/hanocha/awesome_events/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hanocha/awesome_events/labels{/name}","releases_url":"https://api.github.com/repos/hanocha/awesome_events/releases{/id}","deployments_url":"https://api.github.com/repos/hanocha/awesome_events/deployments","created_at":"2016-05-24T10:40:58Z","updated_at":"2016-05-25T02:03:40Z","pushed_at":"2016-05-30T01:55:47Z","git_url":"git://github.com/hanocha/awesome_events.git","ssh_url":"git@github.com:hanocha/awesome_events.git","clone_url":"https://github.com/hanocha/awesome_events.git","svn_url":"https://github.com/hanocha/awesome_events","homepage":null,"size":96,"stargazers_count":1,"watchers_count":1,"language":"Ruby","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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hanocha/awesome_events/pulls/7"},"html":{"href":"https://github.com/hanocha/awesome_events/pull/7"},"issue":{"href":"https://api.github.com/repos/hanocha/awesome_events/issues/7"},"comments":{"href":"https://api.github.com/repos/hanocha/awesome_events/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/hanocha/awesome_events/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/hanocha/awesome_events/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hanocha/awesome_events/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/hanocha/awesome_events/statuses/f231c27da8069a93fec9fc05a57640607a680def"}}}}
{"actor":{"display_login":"hanocha"}}