{"action":"created","comment":{"url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/pulls/comments/49490780","id":49490780,"diff_hunk":"@@ -1,7 +1,59 @@\n-# This file should contain all the record creation needed to seed the database with its default values.\n-# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).\n+# class Seed\n+#   def self.start\n+#     new.generate\n+#   end\n #\n-# Examples:\n+#   def generate\n+#     create_items\n+#     create_categories\n+#   end\n #\n-#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])\n-#   Mayor.create(name: 'Emanuel', city: cities.first)\n+#   def create_categories\n+#     titles = [\"Stylez\", \"Grub\", \"Weapons\", \"Survival Gear\"]\n+#     titles.each do |title|\n+#       Category.create(title: title)\n+#     puts \"#{Category.all.map(&:title).join(\", \")} created.\"\n+#     end\n+#   end\n+#\n+#   def create_items\n+#     items.each do |title, price, description, image, category_id|\n+#       Item.create(title: title, price: price, description: description, image: image, category_id: category_id)\n+#     end\n+#   end\n+#\n+#   private\n+#\n+#   def items\n+#     [\n+#       {\n+#       title: \"axe1\",\n+#       price: 10.5,\n+#       description: \"Use it to chop your way through the crowds\",\n+#       image: \"https://www.wpclipart.com/weapons/axe/Axe_red.svg\",\n+#       category_id: 1\n+#       }\n+#       {\n+#       title: \"axe2\",\n+#       price: 12.5,\n+#       description: \"It's even better! Use it to chop your way through the crowds\",\n+#       image: \"https://www.wpclipart.com/weapons/axe/Axe_red.svg\",\n+#       category_id: 1\n+#       },\n+#       {\n+#       title: \"vest1\",\n+#       price: 13.5,\n+#       description: \"Not only does it look good, but you can hold lots of ammo in the pockets!\",","path":"db/seeds.rb","position":51,"original_position":51,"commit_id":"1fe3a0352a19f552530fc5b24b32bb9b2713c82e","original_commit_id":"1fe3a0352a19f552530fc5b24b32bb9b2713c82e","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","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":"Line is too long. [97/80]","created_at":"2016-01-12T18:11:38Z","updated_at":"2016-01-12T18:11:38Z","html_url":"https://github.com/brantwellman/Turing-zombie-survival-store/pull/11#discussion_r49490780","pull_request_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/pulls/comments/49490780"},"html":{"href":"https://github.com/brantwellman/Turing-zombie-survival-store/pull/11#discussion_r49490780"},"pull_request":{"href":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/pulls/11","id":55795322,"html_url":"https://github.com/brantwellman/Turing-zombie-survival-store/pull/11","diff_url":"https://github.com/brantwellman/Turing-zombie-survival-store/pull/11.diff","patch_url":"https://github.com/brantwellman/Turing-zombie-survival-store/pull/11.patch","issue_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/issues/11","number":11,"state":"open","locked":false,"title":"Change item-price column to integer","user":{"login":"brantwellman","id":6422641,"avatar_url":"https://avatars.githubusercontent.com/u/6422641?v=3","gravatar_id":"","url":"https://api.github.com/users/brantwellman","html_url":"https://github.com/brantwellman","followers_url":"https://api.github.com/users/brantwellman/followers","following_url":"https://api.github.com/users/brantwellman/following{/other_user}","gists_url":"https://api.github.com/users/brantwellman/gists{/gist_id}","starred_url":"https://api.github.com/users/brantwellman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brantwellman/subscriptions","organizations_url":"https://api.github.com/users/brantwellman/orgs","repos_url":"https://api.github.com/users/brantwellman/repos","events_url":"https://api.github.com/users/brantwellman/events{/privacy}","received_events_url":"https://api.github.com/users/brantwellman/received_events","type":"User","site_admin":false},"body":"Generated a migration to change the price data-type to integer, instead of decimal.\r\n\r\nBe sure to run rake db:migrate after pulling back down.","created_at":"2016-01-12T18:11:34Z","updated_at":"2016-01-12T18:11:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57829029426059c0f27bbda9947f397cdc8412cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/pulls/11/commits","review_comments_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/pulls/11/comments","review_comment_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/issues/11/comments","statuses_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/statuses/1fe3a0352a19f552530fc5b24b32bb9b2713c82e","head":{"label":"brantwellman:change_item_price_to_integer","ref":"change_item_price_to_integer","sha":"1fe3a0352a19f552530fc5b24b32bb9b2713c82e","user":{"login":"brantwellman","id":6422641,"avatar_url":"https://avatars.githubusercontent.com/u/6422641?v=3","gravatar_id":"","url":"https://api.github.com/users/brantwellman","html_url":"https://github.com/brantwellman","followers_url":"https://api.github.com/users/brantwellman/followers","following_url":"https://api.github.com/users/brantwellman/following{/other_user}","gists_url":"https://api.github.com/users/brantwellman/gists{/gist_id}","starred_url":"https://api.github.com/users/brantwellman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brantwellman/subscriptions","organizations_url":"https://api.github.com/users/brantwellman/orgs","repos_url":"https://api.github.com/users/brantwellman/repos","events_url":"https://api.github.com/users/brantwellman/events{/privacy}","received_events_url":"https://api.github.com/users/brantwellman/received_events","type":"User","site_admin":false},"repo":{"id":49443639,"name":"Turing-zombie-survival-store","full_name":"brantwellman/Turing-zombie-survival-store","owner":{"login":"brantwellman","id":6422641,"avatar_url":"https://avatars.githubusercontent.com/u/6422641?v=3","gravatar_id":"","url":"https://api.github.com/users/brantwellman","html_url":"https://github.com/brantwellman","followers_url":"https://api.github.com/users/brantwellman/followers","following_url":"https://api.github.com/users/brantwellman/following{/other_user}","gists_url":"https://api.github.com/users/brantwellman/gists{/gist_id}","starred_url":"https://api.github.com/users/brantwellman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brantwellman/subscriptions","organizations_url":"https://api.github.com/users/brantwellman/orgs","repos_url":"https://api.github.com/users/brantwellman/repos","events_url":"https://api.github.com/users/brantwellman/events{/privacy}","received_events_url":"https://api.github.com/users/brantwellman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brantwellman/Turing-zombie-survival-store","description":"","fork":false,"url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store","forks_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/forks","keys_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/teams","hooks_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/hooks","issue_events_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/issues/events{/number}","events_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/events","assignees_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/assignees{/user}","branches_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/branches{/branch}","tags_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/tags","blobs_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/statuses/{sha}","languages_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/languages","stargazers_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/stargazers","contributors_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/contributors","subscribers_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/subscribers","subscription_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/subscription","commits_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/contents/{+path}","compare_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/merges","archive_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/downloads","issues_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/issues{/number}","pulls_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/pulls{/number}","milestones_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/milestones{/number}","notifications_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/labels{/name}","releases_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/releases{/id}","created_at":"2016-01-11T17:53:54Z","updated_at":"2016-01-12T01:17:36Z","pushed_at":"2016-01-12T18:11:34Z","git_url":"git://github.com/brantwellman/Turing-zombie-survival-store.git","ssh_url":"git@github.com:brantwellman/Turing-zombie-survival-store.git","clone_url":"https://github.com/brantwellman/Turing-zombie-survival-store.git","svn_url":"https://github.com/brantwellman/Turing-zombie-survival-store","homepage":null,"size":33,"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":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"brantwellman:master","ref":"master","sha":"2e74b0902c67f3a65d61e7693f8784b48cba9728","user":{"login":"brantwellman","id":6422641,"avatar_url":"https://avatars.githubusercontent.com/u/6422641?v=3","gravatar_id":"","url":"https://api.github.com/users/brantwellman","html_url":"https://github.com/brantwellman","followers_url":"https://api.github.com/users/brantwellman/followers","following_url":"https://api.github.com/users/brantwellman/following{/other_user}","gists_url":"https://api.github.com/users/brantwellman/gists{/gist_id}","starred_url":"https://api.github.com/users/brantwellman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brantwellman/subscriptions","organizations_url":"https://api.github.com/users/brantwellman/orgs","repos_url":"https://api.github.com/users/brantwellman/repos","events_url":"https://api.github.com/users/brantwellman/events{/privacy}","received_events_url":"https://api.github.com/users/brantwellman/received_events","type":"User","site_admin":false},"repo":{"id":49443639,"name":"Turing-zombie-survival-store","full_name":"brantwellman/Turing-zombie-survival-store","owner":{"login":"brantwellman","id":6422641,"avatar_url":"https://avatars.githubusercontent.com/u/6422641?v=3","gravatar_id":"","url":"https://api.github.com/users/brantwellman","html_url":"https://github.com/brantwellman","followers_url":"https://api.github.com/users/brantwellman/followers","following_url":"https://api.github.com/users/brantwellman/following{/other_user}","gists_url":"https://api.github.com/users/brantwellman/gists{/gist_id}","starred_url":"https://api.github.com/users/brantwellman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brantwellman/subscriptions","organizations_url":"https://api.github.com/users/brantwellman/orgs","repos_url":"https://api.github.com/users/brantwellman/repos","events_url":"https://api.github.com/users/brantwellman/events{/privacy}","received_events_url":"https://api.github.com/users/brantwellman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brantwellman/Turing-zombie-survival-store","description":"","fork":false,"url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store","forks_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/forks","keys_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/teams","hooks_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/hooks","issue_events_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/issues/events{/number}","events_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/events","assignees_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/assignees{/user}","branches_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/branches{/branch}","tags_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/tags","blobs_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/statuses/{sha}","languages_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/languages","stargazers_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/stargazers","contributors_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/contributors","subscribers_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/subscribers","subscription_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/subscription","commits_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/contents/{+path}","compare_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/merges","archive_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/downloads","issues_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/issues{/number}","pulls_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/pulls{/number}","milestones_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/milestones{/number}","notifications_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/labels{/name}","releases_url":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/releases{/id}","created_at":"2016-01-11T17:53:54Z","updated_at":"2016-01-12T01:17:36Z","pushed_at":"2016-01-12T18:11:34Z","git_url":"git://github.com/brantwellman/Turing-zombie-survival-store.git","ssh_url":"git@github.com:brantwellman/Turing-zombie-survival-store.git","clone_url":"https://github.com/brantwellman/Turing-zombie-survival-store.git","svn_url":"https://github.com/brantwellman/Turing-zombie-survival-store","homepage":null,"size":33,"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":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/pulls/11"},"html":{"href":"https://github.com/brantwellman/Turing-zombie-survival-store/pull/11"},"issue":{"href":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/issues/11"},"comments":{"href":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/brantwellman/Turing-zombie-survival-store/statuses/1fe3a0352a19f552530fc5b24b32bb9b2713c82e"}}}}