{"action":"created","comment":{"url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/pulls/comments/77743469","id":77743469,"diff_hunk":"@@ -5,3 +5,85 @@\n #\n #   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])\n #   Mayor.create(name: 'Emanuel', city: cities.first)\n+\n+# I have added some objects whose status is Inactive to ensure they don't appear.\n+# Need to create\n+# A user for login\n+# A manager role, and assign it to the admin user\n+# Other roles\n+# Departments\n+# People\n+\n+manager_role = Role.find_or_create_by(name: \"Manager\")\n+if User.count == 0\n+  password = (0...6).map { ('a'..'z').to_a[rand(26)] }.join.upcase\n+  puts \"The initial user password is #{password}\"\n+  puts \"The initial user name is 'bdoe@example.com'\"\n+  admin_user = User.create(username: \"bdoe\",\n+                           email: \"bdoe@example.com\",\n+                           firstname: \"Bob\", lastname: \"Doe\",\n+                           password: password,\n+                           password_confirmation: password\n+                           )\n+  admin_user.roles << manager_role\n+end\n+\n+Role.find_or_create_by(name: \"Editor\")\n+Role.find_or_create_by(name: \"Author\")\n+Role.find_or_create_by(name: \"Depositor\")\n+Role.find_or_create_by(name: \"Trainer\")\n+Role.find_or_create_by(name: \"Admin\")\n+\n+# Departments are where people call home.\n+# I need another status to determine visbility on the various drop downs.","path":"db/seeds.rb","position":34,"original_position":34,"commit_id":"b4d186ba17b1c349614d6f48514e831fd4e488c1","original_commit_id":"b4d186ba17b1c349614d6f48514e831fd4e488c1","user":{"login":"houhoulis","id":95658,"avatar_url":"https://avatars.githubusercontent.com/u/95658?v=3","gravatar_id":"","url":"https://api.github.com/users/houhoulis","html_url":"https://github.com/houhoulis","followers_url":"https://api.github.com/users/houhoulis/followers","following_url":"https://api.github.com/users/houhoulis/following{/other_user}","gists_url":"https://api.github.com/users/houhoulis/gists{/gist_id}","starred_url":"https://api.github.com/users/houhoulis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houhoulis/subscriptions","organizations_url":"https://api.github.com/users/houhoulis/orgs","repos_url":"https://api.github.com/users/houhoulis/repos","events_url":"https://api.github.com/users/houhoulis/events{/privacy}","received_events_url":"https://api.github.com/users/houhoulis/received_events","type":"User","site_admin":false},"body":"\"visibility\" (spelling)\r\n\r\nBut also, I don't understand this comment.  Is this a TODO?","created_at":"2016-09-07T00:32:32Z","updated_at":"2016-09-07T00:32:32Z","html_url":"https://github.com/ReadyResponder/ReadyResponder/pull/130#discussion_r77743469","pull_request_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/pulls/130","_links":{"self":{"href":"https://api.github.com/repos/ReadyResponder/ReadyResponder/pulls/comments/77743469"},"html":{"href":"https://github.com/ReadyResponder/ReadyResponder/pull/130#discussion_r77743469"},"pull_request":{"href":"https://api.github.com/repos/ReadyResponder/ReadyResponder/pulls/130"}}},"pull_request":{"url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/pulls/130","id":83701442,"html_url":"https://github.com/ReadyResponder/ReadyResponder/pull/130","diff_url":"https://github.com/ReadyResponder/ReadyResponder/pull/130.diff","patch_url":"https://github.com/ReadyResponder/ReadyResponder/pull/130.patch","issue_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/issues/130","number":130,"state":"open","locked":false,"title":"Seeds.rb, Added users and models for departments","user":{"login":"kgf","id":2431417,"avatar_url":"https://avatars.githubusercontent.com/u/2431417?v=3","gravatar_id":"","url":"https://api.github.com/users/kgf","html_url":"https://github.com/kgf","followers_url":"https://api.github.com/users/kgf/followers","following_url":"https://api.github.com/users/kgf/following{/other_user}","gists_url":"https://api.github.com/users/kgf/gists{/gist_id}","starred_url":"https://api.github.com/users/kgf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgf/subscriptions","organizations_url":"https://api.github.com/users/kgf/orgs","repos_url":"https://api.github.com/users/kgf/repos","events_url":"https://api.github.com/users/kgf/events{/privacy}","received_events_url":"https://api.github.com/users/kgf/received_events","type":"User","site_admin":false},"body":"to seeds.rb Not finished yet, but still helpful","created_at":"2016-09-01T20:30:57Z","updated_at":"2016-09-07T00:32:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9ad12f8d370942d90652380198a1f8c556177b2","assignee":{"login":"houhoulis","id":95658,"avatar_url":"https://avatars.githubusercontent.com/u/95658?v=3","gravatar_id":"","url":"https://api.github.com/users/houhoulis","html_url":"https://github.com/houhoulis","followers_url":"https://api.github.com/users/houhoulis/followers","following_url":"https://api.github.com/users/houhoulis/following{/other_user}","gists_url":"https://api.github.com/users/houhoulis/gists{/gist_id}","starred_url":"https://api.github.com/users/houhoulis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houhoulis/subscriptions","organizations_url":"https://api.github.com/users/houhoulis/orgs","repos_url":"https://api.github.com/users/houhoulis/repos","events_url":"https://api.github.com/users/houhoulis/events{/privacy}","received_events_url":"https://api.github.com/users/houhoulis/received_events","type":"User","site_admin":false},"assignees":[{"login":"houhoulis","id":95658,"avatar_url":"https://avatars.githubusercontent.com/u/95658?v=3","gravatar_id":"","url":"https://api.github.com/users/houhoulis","html_url":"https://github.com/houhoulis","followers_url":"https://api.github.com/users/houhoulis/followers","following_url":"https://api.github.com/users/houhoulis/following{/other_user}","gists_url":"https://api.github.com/users/houhoulis/gists{/gist_id}","starred_url":"https://api.github.com/users/houhoulis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houhoulis/subscriptions","organizations_url":"https://api.github.com/users/houhoulis/orgs","repos_url":"https://api.github.com/users/houhoulis/repos","events_url":"https://api.github.com/users/houhoulis/events{/privacy}","received_events_url":"https://api.github.com/users/houhoulis/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/pulls/130/commits","review_comments_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/pulls/130/comments","review_comment_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/issues/130/comments","statuses_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/statuses/b4d186ba17b1c349614d6f48514e831fd4e488c1","head":{"label":"kgf:110_add_seeds_db","ref":"110_add_seeds_db","sha":"b4d186ba17b1c349614d6f48514e831fd4e488c1","user":{"login":"kgf","id":2431417,"avatar_url":"https://avatars.githubusercontent.com/u/2431417?v=3","gravatar_id":"","url":"https://api.github.com/users/kgf","html_url":"https://github.com/kgf","followers_url":"https://api.github.com/users/kgf/followers","following_url":"https://api.github.com/users/kgf/following{/other_user}","gists_url":"https://api.github.com/users/kgf/gists{/gist_id}","starred_url":"https://api.github.com/users/kgf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgf/subscriptions","organizations_url":"https://api.github.com/users/kgf/orgs","repos_url":"https://api.github.com/users/kgf/repos","events_url":"https://api.github.com/users/kgf/events{/privacy}","received_events_url":"https://api.github.com/users/kgf/received_events","type":"User","site_admin":false},"repo":{"id":66423327,"name":"ReadyResponder","full_name":"kgf/ReadyResponder","owner":{"login":"kgf","id":2431417,"avatar_url":"https://avatars.githubusercontent.com/u/2431417?v=3","gravatar_id":"","url":"https://api.github.com/users/kgf","html_url":"https://github.com/kgf","followers_url":"https://api.github.com/users/kgf/followers","following_url":"https://api.github.com/users/kgf/following{/other_user}","gists_url":"https://api.github.com/users/kgf/gists{/gist_id}","starred_url":"https://api.github.com/users/kgf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgf/subscriptions","organizations_url":"https://api.github.com/users/kgf/orgs","repos_url":"https://api.github.com/users/kgf/repos","events_url":"https://api.github.com/users/kgf/events{/privacy}","received_events_url":"https://api.github.com/users/kgf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kgf/ReadyResponder","description":"Local Incident Management System - This is used for tracking resources for Local Emergency Management","fork":true,"url":"https://api.github.com/repos/kgf/ReadyResponder","forks_url":"https://api.github.com/repos/kgf/ReadyResponder/forks","keys_url":"https://api.github.com/repos/kgf/ReadyResponder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kgf/ReadyResponder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kgf/ReadyResponder/teams","hooks_url":"https://api.github.com/repos/kgf/ReadyResponder/hooks","issue_events_url":"https://api.github.com/repos/kgf/ReadyResponder/issues/events{/number}","events_url":"https://api.github.com/repos/kgf/ReadyResponder/events","assignees_url":"https://api.github.com/repos/kgf/ReadyResponder/assignees{/user}","branches_url":"https://api.github.com/repos/kgf/ReadyResponder/branches{/branch}","tags_url":"https://api.github.com/repos/kgf/ReadyResponder/tags","blobs_url":"https://api.github.com/repos/kgf/ReadyResponder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kgf/ReadyResponder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kgf/ReadyResponder/git/refs{/sha}","trees_url":"https://api.github.com/repos/kgf/ReadyResponder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kgf/ReadyResponder/statuses/{sha}","languages_url":"https://api.github.com/repos/kgf/ReadyResponder/languages","stargazers_url":"https://api.github.com/repos/kgf/ReadyResponder/stargazers","contributors_url":"https://api.github.com/repos/kgf/ReadyResponder/contributors","subscribers_url":"https://api.github.com/repos/kgf/ReadyResponder/subscribers","subscription_url":"https://api.github.com/repos/kgf/ReadyResponder/subscription","commits_url":"https://api.github.com/repos/kgf/ReadyResponder/commits{/sha}","git_commits_url":"https://api.github.com/repos/kgf/ReadyResponder/git/commits{/sha}","comments_url":"https://api.github.com/repos/kgf/ReadyResponder/comments{/number}","issue_comment_url":"https://api.github.com/repos/kgf/ReadyResponder/issues/comments{/number}","contents_url":"https://api.github.com/repos/kgf/ReadyResponder/contents/{+path}","compare_url":"https://api.github.com/repos/kgf/ReadyResponder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kgf/ReadyResponder/merges","archive_url":"https://api.github.com/repos/kgf/ReadyResponder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kgf/ReadyResponder/downloads","issues_url":"https://api.github.com/repos/kgf/ReadyResponder/issues{/number}","pulls_url":"https://api.github.com/repos/kgf/ReadyResponder/pulls{/number}","milestones_url":"https://api.github.com/repos/kgf/ReadyResponder/milestones{/number}","notifications_url":"https://api.github.com/repos/kgf/ReadyResponder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kgf/ReadyResponder/labels{/name}","releases_url":"https://api.github.com/repos/kgf/ReadyResponder/releases{/id}","deployments_url":"https://api.github.com/repos/kgf/ReadyResponder/deployments","created_at":"2016-08-24T02:51:14Z","updated_at":"2016-08-24T02:51:15Z","pushed_at":"2016-09-01T21:03:15Z","git_url":"git://github.com/kgf/ReadyResponder.git","ssh_url":"git@github.com:kgf/ReadyResponder.git","clone_url":"https://github.com/kgf/ReadyResponder.git","svn_url":"https://github.com/kgf/ReadyResponder","homepage":"","size":2742,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"ReadyResponder:development","ref":"development","sha":"e6f02305165ef1edc8094bbeeed6640e4b9f63d2","user":{"login":"ReadyResponder","id":20895980,"avatar_url":"https://avatars.githubusercontent.com/u/20895980?v=3","gravatar_id":"","url":"https://api.github.com/users/ReadyResponder","html_url":"https://github.com/ReadyResponder","followers_url":"https://api.github.com/users/ReadyResponder/followers","following_url":"https://api.github.com/users/ReadyResponder/following{/other_user}","gists_url":"https://api.github.com/users/ReadyResponder/gists{/gist_id}","starred_url":"https://api.github.com/users/ReadyResponder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReadyResponder/subscriptions","organizations_url":"https://api.github.com/users/ReadyResponder/orgs","repos_url":"https://api.github.com/users/ReadyResponder/repos","events_url":"https://api.github.com/users/ReadyResponder/events{/privacy}","received_events_url":"https://api.github.com/users/ReadyResponder/received_events","type":"Organization","site_admin":false},"repo":{"id":10175290,"name":"ReadyResponder","full_name":"ReadyResponder/ReadyResponder","owner":{"login":"ReadyResponder","id":20895980,"avatar_url":"https://avatars.githubusercontent.com/u/20895980?v=3","gravatar_id":"","url":"https://api.github.com/users/ReadyResponder","html_url":"https://github.com/ReadyResponder","followers_url":"https://api.github.com/users/ReadyResponder/followers","following_url":"https://api.github.com/users/ReadyResponder/following{/other_user}","gists_url":"https://api.github.com/users/ReadyResponder/gists{/gist_id}","starred_url":"https://api.github.com/users/ReadyResponder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReadyResponder/subscriptions","organizations_url":"https://api.github.com/users/ReadyResponder/orgs","repos_url":"https://api.github.com/users/ReadyResponder/repos","events_url":"https://api.github.com/users/ReadyResponder/events{/privacy}","received_events_url":"https://api.github.com/users/ReadyResponder/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ReadyResponder/ReadyResponder","description":"Local Incident Management System - This is used for tracking resources for Local Emergency Management","fork":false,"url":"https://api.github.com/repos/ReadyResponder/ReadyResponder","forks_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/forks","keys_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/teams","hooks_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/hooks","issue_events_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/issues/events{/number}","events_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/events","assignees_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/assignees{/user}","branches_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/branches{/branch}","tags_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/tags","blobs_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/git/refs{/sha}","trees_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/statuses/{sha}","languages_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/languages","stargazers_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/stargazers","contributors_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/contributors","subscribers_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/subscribers","subscription_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/subscription","commits_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/commits{/sha}","git_commits_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/git/commits{/sha}","comments_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/comments{/number}","issue_comment_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/issues/comments{/number}","contents_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/contents/{+path}","compare_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/merges","archive_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/downloads","issues_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/issues{/number}","pulls_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/pulls{/number}","milestones_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/milestones{/number}","notifications_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/labels{/name}","releases_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/releases{/id}","deployments_url":"https://api.github.com/repos/ReadyResponder/ReadyResponder/deployments","created_at":"2013-05-20T15:06:15Z","updated_at":"2016-08-15T06:17:00Z","pushed_at":"2016-09-02T03:55:53Z","git_url":"git://github.com/ReadyResponder/ReadyResponder.git","ssh_url":"git@github.com:ReadyResponder/ReadyResponder.git","clone_url":"https://github.com/ReadyResponder/ReadyResponder.git","svn_url":"https://github.com/ReadyResponder/ReadyResponder","homepage":"","size":2783,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":45,"forks":22,"open_issues":45,"watchers":11,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/ReadyResponder/ReadyResponder/pulls/130"},"html":{"href":"https://github.com/ReadyResponder/ReadyResponder/pull/130"},"issue":{"href":"https://api.github.com/repos/ReadyResponder/ReadyResponder/issues/130"},"comments":{"href":"https://api.github.com/repos/ReadyResponder/ReadyResponder/issues/130/comments"},"review_comments":{"href":"https://api.github.com/repos/ReadyResponder/ReadyResponder/pulls/130/comments"},"review_comment":{"href":"https://api.github.com/repos/ReadyResponder/ReadyResponder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ReadyResponder/ReadyResponder/pulls/130/commits"},"statuses":{"href":"https://api.github.com/repos/ReadyResponder/ReadyResponder/statuses/b4d186ba17b1c349614d6f48514e831fd4e488c1"}}}}
{"actor":{"display_login":"houhoulis"}}