{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/h5y1m141/trip_guide/pulls/4","id":29147873,"html_url":"https://github.com/h5y1m141/trip_guide/pull/4","diff_url":"https://github.com/h5y1m141/trip_guide/pull/4.diff","patch_url":"https://github.com/h5y1m141/trip_guide/pull/4.patch","issue_url":"https://api.github.com/repos/h5y1m141/trip_guide/issues/4","number":4,"state":"open","locked":false,"title":"[WIP]db/seeds.rbを作成する","user":{"login":"h5y1m141","id":950924,"avatar_url":"https://avatars.githubusercontent.com/u/950924?v=3","gravatar_id":"","url":"https://api.github.com/users/h5y1m141","html_url":"https://github.com/h5y1m141","followers_url":"https://api.github.com/users/h5y1m141/followers","following_url":"https://api.github.com/users/h5y1m141/following{/other_user}","gists_url":"https://api.github.com/users/h5y1m141/gists{/gist_id}","starred_url":"https://api.github.com/users/h5y1m141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h5y1m141/subscriptions","organizations_url":"https://api.github.com/users/h5y1m141/orgs","repos_url":"https://api.github.com/users/h5y1m141/repos","events_url":"https://api.github.com/users/h5y1m141/events{/privacy}","received_events_url":"https://api.github.com/users/h5y1m141/received_events","type":"User","site_admin":false},"body":"## このプルリクエストで成し遂げたいこと\r\n\r\n- [ ] 元々、初期データ投入用に考えていたけど、これseed-fu 使って作りたい\r\n\r\n\r\nseed-fuは[こちら](http://qiita.com/ko2ic/items/be96e450a33d631e0059)\r\n\r\n> seed-fu を使うのが、初期データの入れ方としては良いみたいです。\r\n>\r\n> railsにある仕組みとして rake db:seed があります。\r\n> これは、何も考えずに使うと実行するたびに同じデータが登録されてしまいます。\r\n> そこで、代わりにseed-fuを利用するわけです。\r\n> \r\n> seed-fuは、すでに存在しているが変更したいレコードだけ更新したり、ファイル単位で実行できたり、簡単に書けるようなシンタックスシュガーがあったりと便利です。","created_at":"2015-02-12T02:22:52Z","updated_at":"2015-02-12T02:22:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/h5y1m141/trip_guide/pulls/4/commits","review_comments_url":"https://api.github.com/repos/h5y1m141/trip_guide/pulls/4/comments","review_comment_url":"https://api.github.com/repos/h5y1m141/trip_guide/pulls/comments/{number}","comments_url":"https://api.github.com/repos/h5y1m141/trip_guide/issues/4/comments","statuses_url":"https://api.github.com/repos/h5y1m141/trip_guide/statuses/0eafd801efd4e8aea45f3f3e4476957f9ead7e90","head":{"label":"h5y1m141:feature/setup_seeds","ref":"feature/setup_seeds","sha":"0eafd801efd4e8aea45f3f3e4476957f9ead7e90","user":{"login":"h5y1m141","id":950924,"avatar_url":"https://avatars.githubusercontent.com/u/950924?v=3","gravatar_id":"","url":"https://api.github.com/users/h5y1m141","html_url":"https://github.com/h5y1m141","followers_url":"https://api.github.com/users/h5y1m141/followers","following_url":"https://api.github.com/users/h5y1m141/following{/other_user}","gists_url":"https://api.github.com/users/h5y1m141/gists{/gist_id}","starred_url":"https://api.github.com/users/h5y1m141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h5y1m141/subscriptions","organizations_url":"https://api.github.com/users/h5y1m141/orgs","repos_url":"https://api.github.com/users/h5y1m141/repos","events_url":"https://api.github.com/users/h5y1m141/events{/privacy}","received_events_url":"https://api.github.com/users/h5y1m141/received_events","type":"User","site_admin":false},"repo":{"id":30645018,"name":"trip_guide","full_name":"h5y1m141/trip_guide","owner":{"login":"h5y1m141","id":950924,"avatar_url":"https://avatars.githubusercontent.com/u/950924?v=3","gravatar_id":"","url":"https://api.github.com/users/h5y1m141","html_url":"https://github.com/h5y1m141","followers_url":"https://api.github.com/users/h5y1m141/followers","following_url":"https://api.github.com/users/h5y1m141/following{/other_user}","gists_url":"https://api.github.com/users/h5y1m141/gists{/gist_id}","starred_url":"https://api.github.com/users/h5y1m141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h5y1m141/subscriptions","organizations_url":"https://api.github.com/users/h5y1m141/orgs","repos_url":"https://api.github.com/users/h5y1m141/repos","events_url":"https://api.github.com/users/h5y1m141/events{/privacy}","received_events_url":"https://api.github.com/users/h5y1m141/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/h5y1m141/trip_guide","description":"","fork":false,"url":"https://api.github.com/repos/h5y1m141/trip_guide","forks_url":"https://api.github.com/repos/h5y1m141/trip_guide/forks","keys_url":"https://api.github.com/repos/h5y1m141/trip_guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h5y1m141/trip_guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h5y1m141/trip_guide/teams","hooks_url":"https://api.github.com/repos/h5y1m141/trip_guide/hooks","issue_events_url":"https://api.github.com/repos/h5y1m141/trip_guide/issues/events{/number}","events_url":"https://api.github.com/repos/h5y1m141/trip_guide/events","assignees_url":"https://api.github.com/repos/h5y1m141/trip_guide/assignees{/user}","branches_url":"https://api.github.com/repos/h5y1m141/trip_guide/branches{/branch}","tags_url":"https://api.github.com/repos/h5y1m141/trip_guide/tags","blobs_url":"https://api.github.com/repos/h5y1m141/trip_guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h5y1m141/trip_guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h5y1m141/trip_guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/h5y1m141/trip_guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h5y1m141/trip_guide/statuses/{sha}","languages_url":"https://api.github.com/repos/h5y1m141/trip_guide/languages","stargazers_url":"https://api.github.com/repos/h5y1m141/trip_guide/stargazers","contributors_url":"https://api.github.com/repos/h5y1m141/trip_guide/contributors","subscribers_url":"https://api.github.com/repos/h5y1m141/trip_guide/subscribers","subscription_url":"https://api.github.com/repos/h5y1m141/trip_guide/subscription","commits_url":"https://api.github.com/repos/h5y1m141/trip_guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/h5y1m141/trip_guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/h5y1m141/trip_guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/h5y1m141/trip_guide/issues/comments/{number}","contents_url":"https://api.github.com/repos/h5y1m141/trip_guide/contents/{+path}","compare_url":"https://api.github.com/repos/h5y1m141/trip_guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h5y1m141/trip_guide/merges","archive_url":"https://api.github.com/repos/h5y1m141/trip_guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h5y1m141/trip_guide/downloads","issues_url":"https://api.github.com/repos/h5y1m141/trip_guide/issues{/number}","pulls_url":"https://api.github.com/repos/h5y1m141/trip_guide/pulls{/number}","milestones_url":"https://api.github.com/repos/h5y1m141/trip_guide/milestones{/number}","notifications_url":"https://api.github.com/repos/h5y1m141/trip_guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h5y1m141/trip_guide/labels{/name}","releases_url":"https://api.github.com/repos/h5y1m141/trip_guide/releases{/id}","created_at":"2015-02-11T11:39:28Z","updated_at":"2015-02-12T01:23:01Z","pushed_at":"2015-02-12T02:19:42Z","git_url":"git://github.com/h5y1m141/trip_guide.git","ssh_url":"git@github.com:h5y1m141/trip_guide.git","clone_url":"https://github.com/h5y1m141/trip_guide.git","svn_url":"https://github.com/h5y1m141/trip_guide","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"h5y1m141:master","ref":"master","sha":"0b53c9637db4e622b255e58a7fcde767deb062c5","user":{"login":"h5y1m141","id":950924,"avatar_url":"https://avatars.githubusercontent.com/u/950924?v=3","gravatar_id":"","url":"https://api.github.com/users/h5y1m141","html_url":"https://github.com/h5y1m141","followers_url":"https://api.github.com/users/h5y1m141/followers","following_url":"https://api.github.com/users/h5y1m141/following{/other_user}","gists_url":"https://api.github.com/users/h5y1m141/gists{/gist_id}","starred_url":"https://api.github.com/users/h5y1m141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h5y1m141/subscriptions","organizations_url":"https://api.github.com/users/h5y1m141/orgs","repos_url":"https://api.github.com/users/h5y1m141/repos","events_url":"https://api.github.com/users/h5y1m141/events{/privacy}","received_events_url":"https://api.github.com/users/h5y1m141/received_events","type":"User","site_admin":false},"repo":{"id":30645018,"name":"trip_guide","full_name":"h5y1m141/trip_guide","owner":{"login":"h5y1m141","id":950924,"avatar_url":"https://avatars.githubusercontent.com/u/950924?v=3","gravatar_id":"","url":"https://api.github.com/users/h5y1m141","html_url":"https://github.com/h5y1m141","followers_url":"https://api.github.com/users/h5y1m141/followers","following_url":"https://api.github.com/users/h5y1m141/following{/other_user}","gists_url":"https://api.github.com/users/h5y1m141/gists{/gist_id}","starred_url":"https://api.github.com/users/h5y1m141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h5y1m141/subscriptions","organizations_url":"https://api.github.com/users/h5y1m141/orgs","repos_url":"https://api.github.com/users/h5y1m141/repos","events_url":"https://api.github.com/users/h5y1m141/events{/privacy}","received_events_url":"https://api.github.com/users/h5y1m141/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/h5y1m141/trip_guide","description":"","fork":false,"url":"https://api.github.com/repos/h5y1m141/trip_guide","forks_url":"https://api.github.com/repos/h5y1m141/trip_guide/forks","keys_url":"https://api.github.com/repos/h5y1m141/trip_guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h5y1m141/trip_guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h5y1m141/trip_guide/teams","hooks_url":"https://api.github.com/repos/h5y1m141/trip_guide/hooks","issue_events_url":"https://api.github.com/repos/h5y1m141/trip_guide/issues/events{/number}","events_url":"https://api.github.com/repos/h5y1m141/trip_guide/events","assignees_url":"https://api.github.com/repos/h5y1m141/trip_guide/assignees{/user}","branches_url":"https://api.github.com/repos/h5y1m141/trip_guide/branches{/branch}","tags_url":"https://api.github.com/repos/h5y1m141/trip_guide/tags","blobs_url":"https://api.github.com/repos/h5y1m141/trip_guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h5y1m141/trip_guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h5y1m141/trip_guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/h5y1m141/trip_guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h5y1m141/trip_guide/statuses/{sha}","languages_url":"https://api.github.com/repos/h5y1m141/trip_guide/languages","stargazers_url":"https://api.github.com/repos/h5y1m141/trip_guide/stargazers","contributors_url":"https://api.github.com/repos/h5y1m141/trip_guide/contributors","subscribers_url":"https://api.github.com/repos/h5y1m141/trip_guide/subscribers","subscription_url":"https://api.github.com/repos/h5y1m141/trip_guide/subscription","commits_url":"https://api.github.com/repos/h5y1m141/trip_guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/h5y1m141/trip_guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/h5y1m141/trip_guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/h5y1m141/trip_guide/issues/comments/{number}","contents_url":"https://api.github.com/repos/h5y1m141/trip_guide/contents/{+path}","compare_url":"https://api.github.com/repos/h5y1m141/trip_guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h5y1m141/trip_guide/merges","archive_url":"https://api.github.com/repos/h5y1m141/trip_guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h5y1m141/trip_guide/downloads","issues_url":"https://api.github.com/repos/h5y1m141/trip_guide/issues{/number}","pulls_url":"https://api.github.com/repos/h5y1m141/trip_guide/pulls{/number}","milestones_url":"https://api.github.com/repos/h5y1m141/trip_guide/milestones{/number}","notifications_url":"https://api.github.com/repos/h5y1m141/trip_guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h5y1m141/trip_guide/labels{/name}","releases_url":"https://api.github.com/repos/h5y1m141/trip_guide/releases{/id}","created_at":"2015-02-11T11:39:28Z","updated_at":"2015-02-12T01:23:01Z","pushed_at":"2015-02-12T02:19:42Z","git_url":"git://github.com/h5y1m141/trip_guide.git","ssh_url":"git@github.com:h5y1m141/trip_guide.git","clone_url":"https://github.com/h5y1m141/trip_guide.git","svn_url":"https://github.com/h5y1m141/trip_guide","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/h5y1m141/trip_guide/pulls/4"},"html":{"href":"https://github.com/h5y1m141/trip_guide/pull/4"},"issue":{"href":"https://api.github.com/repos/h5y1m141/trip_guide/issues/4"},"comments":{"href":"https://api.github.com/repos/h5y1m141/trip_guide/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/h5y1m141/trip_guide/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/h5y1m141/trip_guide/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/h5y1m141/trip_guide/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/h5y1m141/trip_guide/statuses/0eafd801efd4e8aea45f3f3e4476957f9ead7e90"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":0,"deletions":0,"changed_files":0}}