{"action":"created","comment":{"url":"https://api.github.com/repos/paulgrever/glass-basement/pulls/comments/33310644","id":33310644,"diff_hunk":"@@ -1,39 +1,47 @@\n class Seeds\n   def self.create\n-    Region.create(place: \"Denver\")\n-    Region.create(place: \"Boston\")\n-    Region.create(place: \"San Francisco\")\n \n-    Company.create(name: \"QuickLeft\")\n-    Company.create(name: \"Thoughtbot\")\n-    Company.create(name: \"Pivotal Labs\")\n+    companies = [\"QuickLeft\", \"Thoughtbot\", \"Pivotal Labs\", \"Sphero\",\n+      \"Rally\", \"AlchemyAPI\", \"IBM\", \"CartaSite\", \"Get Outfitted\",\n+      \"Project Helping\", \"Project Travel\", \"Kapost\", \"Sovrn\", \"Invoca\",\n+      \"CaptainU\", \"MojoTech\", \"Dojo4\", \"Twitter\", \"Gnip\", \"Craftsy\"]\n \n-    CompanyRegion.create(company_id: 1, region_id: 1)\n-    CompanyRegion.create(company_id: 2, region_id: 2)\n-    CompanyRegion.create(company_id: 3, region_id: 3)\n+    companies.each_with_index do |company|\n+      a = Company.create(name: company)\n+      Job.create(title: \"Web Developer 1\", job_description: \"Build stuff\", company_id: a.id)\n+      Job.create(title: \"Sr Web Developer\", job_description: \"Build stuff\", company_id: a.id)\n+    end\n+\n+    cities = [\"Denver\", \"Boston\", \"San Francisco\", \"New York\",\n+      \"Philadelphia\", \"St. Louis\", \"Salt Lake City\", \"Boulder\",\n+      \"Fort Collins\", \"Miami\", \"Austin\", \"Dallas\", \"Providence\",\n+      \"Chicago\", \"Minneapolis\", \"Los Angeles\", \"San Diego\", \"Madison\",\n+      \"Washington D.C.\"]\n \n     User.create(uid: \"123455\", name: \"Paul Grever\", email: \"paulgrever@gmail.com\", image: \"https://avatars.githubusercontent.com/u/3664281?v=3\")\n     User.create(uid:\"8762410\", name: \"xvalentino\", email: \"tino@tino.tino\", image: \"https://avatars.githubusercontent.com/u/8762410?v=3\")\n     User.create(uid:\"5142805\", name: \"mirjoy\", email: \"miraim@miraim.miraim\", image: \"https://avatars.githubusercontent.com/u/5142805?v=3\")\n \n-    (1..6).to_a.each do |num|\n-      Job.create(title: \"Web Developer #{num}\", job_description: \"Build stuff\", company_id: ((num % 3) + 1))\n+    cities.each_with_index do |city, index|\n+      a = Region.create(place: city)\n+      CompanyRegion.create(company_id: (index + 1), region_id: a.id)\n     end\n \n-    15.times do\n-      num = (1..User.all.count).to_a.sample\n-      user = User.find(num)\n-      user.interviews.create(job_id: (1..6).to_a.sample,\n-                                   title: \"Interview #{rand(1..10)}\",\n-                                   number: rand(1..3),\n-                                   date: Time.at(rand * Time.now.to_i),\n-                                   interview_type: [\"phone\", \"in-person\", \"technical\", \"video\", \"other\"].sample,\n-                                   details: \"This interview was great. They were friendly and asked me alot about my passion for coding\",\n-                                   time_between: \"1 week\",\n-                                   questions: \"They focused alot of their questions about TDD and JavaScript\",\n-                                   interviewer_name: \"Miriam Moser\",\n-                                   interviewer_email: \"miriam.moser@gmail.com\",\n-                                   interviewer_phone: \"555-555-5555\")\n+    job_ids = (1..Job.count).to_a\n+\n+    Job.count.times do\n+      Interview.create(job_id: job_ids.sample,\n+       title: \"Interview #{rand(1..10)}\",\n+       number: rand(1..3),\n+       date: Time.at(rand * Time.now.to_i),\n+       interview_type: [\"phone\", \"in-person\", \"technical\", \"video\", \"other\"].sample,\n+       details: \"This interview was great. They were friendly and asked me alot about my passion for coding\",\n+       time_between: \"1 week\",","path":"db/seeds.rb","position":64,"original_position":64,"commit_id":"632336b2d74d935b14c71cf6b00debfb102a2474","original_commit_id":"632336b2d74d935b14c71cf6b00debfb102a2474","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":"Align the elements of a hash literal if they span more than one line.","created_at":"2015-06-25T22:09:27Z","updated_at":"2015-06-25T22:09:27Z","html_url":"https://github.com/paulgrever/glass-basement/pull/20#discussion_r33310644","pull_request_url":"https://api.github.com/repos/paulgrever/glass-basement/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/paulgrever/glass-basement/pulls/comments/33310644"},"html":{"href":"https://github.com/paulgrever/glass-basement/pull/20#discussion_r33310644"},"pull_request":{"href":"https://api.github.com/repos/paulgrever/glass-basement/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/paulgrever/glass-basement/pulls/20","id":38599140,"html_url":"https://github.com/paulgrever/glass-basement/pull/20","diff_url":"https://github.com/paulgrever/glass-basement/pull/20.diff","patch_url":"https://github.com/paulgrever/glass-basement/pull/20.patch","issue_url":"https://api.github.com/repos/paulgrever/glass-basement/issues/20","number":20,"state":"open","locked":false,"title":"Better seeds","user":{"login":"mirjoy","id":5142805,"avatar_url":"https://avatars.githubusercontent.com/u/5142805?v=3","gravatar_id":"","url":"https://api.github.com/users/mirjoy","html_url":"https://github.com/mirjoy","followers_url":"https://api.github.com/users/mirjoy/followers","following_url":"https://api.github.com/users/mirjoy/following{/other_user}","gists_url":"https://api.github.com/users/mirjoy/gists{/gist_id}","starred_url":"https://api.github.com/users/mirjoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirjoy/subscriptions","organizations_url":"https://api.github.com/users/mirjoy/orgs","repos_url":"https://api.github.com/users/mirjoy/repos","events_url":"https://api.github.com/users/mirjoy/events{/privacy}","received_events_url":"https://api.github.com/users/mirjoy/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-25T22:09:21Z","updated_at":"2015-06-25T22:09:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"816e040b54c0b08415805a8d02ffbf932ce39785","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/paulgrever/glass-basement/pulls/20/commits","review_comments_url":"https://api.github.com/repos/paulgrever/glass-basement/pulls/20/comments","review_comment_url":"https://api.github.com/repos/paulgrever/glass-basement/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paulgrever/glass-basement/issues/20/comments","statuses_url":"https://api.github.com/repos/paulgrever/glass-basement/statuses/632336b2d74d935b14c71cf6b00debfb102a2474","head":{"label":"paulgrever:better-seeds","ref":"better-seeds","sha":"632336b2d74d935b14c71cf6b00debfb102a2474","user":{"login":"paulgrever","id":3664281,"avatar_url":"https://avatars.githubusercontent.com/u/3664281?v=3","gravatar_id":"","url":"https://api.github.com/users/paulgrever","html_url":"https://github.com/paulgrever","followers_url":"https://api.github.com/users/paulgrever/followers","following_url":"https://api.github.com/users/paulgrever/following{/other_user}","gists_url":"https://api.github.com/users/paulgrever/gists{/gist_id}","starred_url":"https://api.github.com/users/paulgrever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulgrever/subscriptions","organizations_url":"https://api.github.com/users/paulgrever/orgs","repos_url":"https://api.github.com/users/paulgrever/repos","events_url":"https://api.github.com/users/paulgrever/events{/privacy}","received_events_url":"https://api.github.com/users/paulgrever/received_events","type":"User","site_admin":false},"repo":{"id":37420692,"name":"glass-basement","full_name":"paulgrever/glass-basement","owner":{"login":"paulgrever","id":3664281,"avatar_url":"https://avatars.githubusercontent.com/u/3664281?v=3","gravatar_id":"","url":"https://api.github.com/users/paulgrever","html_url":"https://github.com/paulgrever","followers_url":"https://api.github.com/users/paulgrever/followers","following_url":"https://api.github.com/users/paulgrever/following{/other_user}","gists_url":"https://api.github.com/users/paulgrever/gists{/gist_id}","starred_url":"https://api.github.com/users/paulgrever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulgrever/subscriptions","organizations_url":"https://api.github.com/users/paulgrever/orgs","repos_url":"https://api.github.com/users/paulgrever/repos","events_url":"https://api.github.com/users/paulgrever/events{/privacy}","received_events_url":"https://api.github.com/users/paulgrever/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulgrever/glass-basement","description":"","fork":false,"url":"https://api.github.com/repos/paulgrever/glass-basement","forks_url":"https://api.github.com/repos/paulgrever/glass-basement/forks","keys_url":"https://api.github.com/repos/paulgrever/glass-basement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulgrever/glass-basement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulgrever/glass-basement/teams","hooks_url":"https://api.github.com/repos/paulgrever/glass-basement/hooks","issue_events_url":"https://api.github.com/repos/paulgrever/glass-basement/issues/events{/number}","events_url":"https://api.github.com/repos/paulgrever/glass-basement/events","assignees_url":"https://api.github.com/repos/paulgrever/glass-basement/assignees{/user}","branches_url":"https://api.github.com/repos/paulgrever/glass-basement/branches{/branch}","tags_url":"https://api.github.com/repos/paulgrever/glass-basement/tags","blobs_url":"https://api.github.com/repos/paulgrever/glass-basement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulgrever/glass-basement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulgrever/glass-basement/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulgrever/glass-basement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulgrever/glass-basement/statuses/{sha}","languages_url":"https://api.github.com/repos/paulgrever/glass-basement/languages","stargazers_url":"https://api.github.com/repos/paulgrever/glass-basement/stargazers","contributors_url":"https://api.github.com/repos/paulgrever/glass-basement/contributors","subscribers_url":"https://api.github.com/repos/paulgrever/glass-basement/subscribers","subscription_url":"https://api.github.com/repos/paulgrever/glass-basement/subscription","commits_url":"https://api.github.com/repos/paulgrever/glass-basement/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulgrever/glass-basement/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulgrever/glass-basement/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulgrever/glass-basement/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulgrever/glass-basement/contents/{+path}","compare_url":"https://api.github.com/repos/paulgrever/glass-basement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulgrever/glass-basement/merges","archive_url":"https://api.github.com/repos/paulgrever/glass-basement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulgrever/glass-basement/downloads","issues_url":"https://api.github.com/repos/paulgrever/glass-basement/issues{/number}","pulls_url":"https://api.github.com/repos/paulgrever/glass-basement/pulls{/number}","milestones_url":"https://api.github.com/repos/paulgrever/glass-basement/milestones{/number}","notifications_url":"https://api.github.com/repos/paulgrever/glass-basement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulgrever/glass-basement/labels{/name}","releases_url":"https://api.github.com/repos/paulgrever/glass-basement/releases{/id}","created_at":"2015-06-14T16:46:29Z","updated_at":"2015-06-18T19:08:05Z","pushed_at":"2015-06-25T22:09:22Z","git_url":"git://github.com/paulgrever/glass-basement.git","ssh_url":"git@github.com:paulgrever/glass-basement.git","clone_url":"https://github.com/paulgrever/glass-basement.git","svn_url":"https://github.com/paulgrever/glass-basement","homepage":null,"size":448,"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":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"paulgrever:master","ref":"master","sha":"d3ddff546f9764a60598dd577838461cc652f801","user":{"login":"paulgrever","id":3664281,"avatar_url":"https://avatars.githubusercontent.com/u/3664281?v=3","gravatar_id":"","url":"https://api.github.com/users/paulgrever","html_url":"https://github.com/paulgrever","followers_url":"https://api.github.com/users/paulgrever/followers","following_url":"https://api.github.com/users/paulgrever/following{/other_user}","gists_url":"https://api.github.com/users/paulgrever/gists{/gist_id}","starred_url":"https://api.github.com/users/paulgrever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulgrever/subscriptions","organizations_url":"https://api.github.com/users/paulgrever/orgs","repos_url":"https://api.github.com/users/paulgrever/repos","events_url":"https://api.github.com/users/paulgrever/events{/privacy}","received_events_url":"https://api.github.com/users/paulgrever/received_events","type":"User","site_admin":false},"repo":{"id":37420692,"name":"glass-basement","full_name":"paulgrever/glass-basement","owner":{"login":"paulgrever","id":3664281,"avatar_url":"https://avatars.githubusercontent.com/u/3664281?v=3","gravatar_id":"","url":"https://api.github.com/users/paulgrever","html_url":"https://github.com/paulgrever","followers_url":"https://api.github.com/users/paulgrever/followers","following_url":"https://api.github.com/users/paulgrever/following{/other_user}","gists_url":"https://api.github.com/users/paulgrever/gists{/gist_id}","starred_url":"https://api.github.com/users/paulgrever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulgrever/subscriptions","organizations_url":"https://api.github.com/users/paulgrever/orgs","repos_url":"https://api.github.com/users/paulgrever/repos","events_url":"https://api.github.com/users/paulgrever/events{/privacy}","received_events_url":"https://api.github.com/users/paulgrever/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulgrever/glass-basement","description":"","fork":false,"url":"https://api.github.com/repos/paulgrever/glass-basement","forks_url":"https://api.github.com/repos/paulgrever/glass-basement/forks","keys_url":"https://api.github.com/repos/paulgrever/glass-basement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulgrever/glass-basement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulgrever/glass-basement/teams","hooks_url":"https://api.github.com/repos/paulgrever/glass-basement/hooks","issue_events_url":"https://api.github.com/repos/paulgrever/glass-basement/issues/events{/number}","events_url":"https://api.github.com/repos/paulgrever/glass-basement/events","assignees_url":"https://api.github.com/repos/paulgrever/glass-basement/assignees{/user}","branches_url":"https://api.github.com/repos/paulgrever/glass-basement/branches{/branch}","tags_url":"https://api.github.com/repos/paulgrever/glass-basement/tags","blobs_url":"https://api.github.com/repos/paulgrever/glass-basement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulgrever/glass-basement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulgrever/glass-basement/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulgrever/glass-basement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulgrever/glass-basement/statuses/{sha}","languages_url":"https://api.github.com/repos/paulgrever/glass-basement/languages","stargazers_url":"https://api.github.com/repos/paulgrever/glass-basement/stargazers","contributors_url":"https://api.github.com/repos/paulgrever/glass-basement/contributors","subscribers_url":"https://api.github.com/repos/paulgrever/glass-basement/subscribers","subscription_url":"https://api.github.com/repos/paulgrever/glass-basement/subscription","commits_url":"https://api.github.com/repos/paulgrever/glass-basement/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulgrever/glass-basement/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulgrever/glass-basement/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulgrever/glass-basement/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulgrever/glass-basement/contents/{+path}","compare_url":"https://api.github.com/repos/paulgrever/glass-basement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulgrever/glass-basement/merges","archive_url":"https://api.github.com/repos/paulgrever/glass-basement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulgrever/glass-basement/downloads","issues_url":"https://api.github.com/repos/paulgrever/glass-basement/issues{/number}","pulls_url":"https://api.github.com/repos/paulgrever/glass-basement/pulls{/number}","milestones_url":"https://api.github.com/repos/paulgrever/glass-basement/milestones{/number}","notifications_url":"https://api.github.com/repos/paulgrever/glass-basement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulgrever/glass-basement/labels{/name}","releases_url":"https://api.github.com/repos/paulgrever/glass-basement/releases{/id}","created_at":"2015-06-14T16:46:29Z","updated_at":"2015-06-18T19:08:05Z","pushed_at":"2015-06-25T22:09:22Z","git_url":"git://github.com/paulgrever/glass-basement.git","ssh_url":"git@github.com:paulgrever/glass-basement.git","clone_url":"https://github.com/paulgrever/glass-basement.git","svn_url":"https://github.com/paulgrever/glass-basement","homepage":null,"size":448,"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":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paulgrever/glass-basement/pulls/20"},"html":{"href":"https://github.com/paulgrever/glass-basement/pull/20"},"issue":{"href":"https://api.github.com/repos/paulgrever/glass-basement/issues/20"},"comments":{"href":"https://api.github.com/repos/paulgrever/glass-basement/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/paulgrever/glass-basement/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/paulgrever/glass-basement/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paulgrever/glass-basement/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/paulgrever/glass-basement/statuses/632336b2d74d935b14c71cf6b00debfb102a2474"}}}}