{"action":"created","comment":{"url":"https://api.github.com/repos/lunarcollective/employee-scheduling/pulls/comments/71433724","id":71433724,"diff_hunk":"@@ -73,9 +73,19 @@ def recently\n horse = Horse.find_by(name: \"Beans\")\n HorseEquipment.create!(horse: horse, equipment: equip)\n \n+if Day.count.zero?\n+  %w(Monday Tuesday Wednesday Thursday Friday Saturday Sunday).each_with_index do |day, index|\n+    Day.create!(numeral: index + 1, name: day)\n+  end\n+end\n+\n+Day.work_week.each do |day|\n+  UserDay.create!(day: day, user: van)\n+end\n+\n 7.times do |num|\n-  UserAvailability.create(user: van,\n-                          day: num,\n+  UserAvailability.create!(user: van,\n                           start_time: Time.local(2016, 7, 6, 12, 0, 0),\n-                          end_time: Time.local(2016, 7, 6, 20, 0, 0))\n+                          end_time: Time.local(2016, 7, 6, 20, 0, 0),\n+                          user_day: UserDay.find(num + 1))","path":"db/seeds.rb","position":21,"original_position":21,"commit_id":"3c79a86b8939b39fa483dcd958d0c7e1664e6011","original_commit_id":"3c79a86b8939b39fa483dcd958d0c7e1664e6011","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Align the elements of a hash literal if they span more than one line.","created_at":"2016-07-19T22:09:36Z","updated_at":"2016-07-19T22:09:36Z","html_url":"https://github.com/lunarcollective/employee-scheduling/pull/28#discussion_r71433724","pull_request_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/lunarcollective/employee-scheduling/pulls/comments/71433724"},"html":{"href":"https://github.com/lunarcollective/employee-scheduling/pull/28#discussion_r71433724"},"pull_request":{"href":"https://api.github.com/repos/lunarcollective/employee-scheduling/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/lunarcollective/employee-scheduling/pulls/28","id":78058089,"html_url":"https://github.com/lunarcollective/employee-scheduling/pull/28","diff_url":"https://github.com/lunarcollective/employee-scheduling/pull/28.diff","patch_url":"https://github.com/lunarcollective/employee-scheduling/pull/28.patch","issue_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/issues/28","number":28,"state":"open","locked":false,"title":"User days","user":{"login":"DaneCarmichael","id":16695830,"avatar_url":"https://avatars.githubusercontent.com/u/16695830?v=3","gravatar_id":"","url":"https://api.github.com/users/DaneCarmichael","html_url":"https://github.com/DaneCarmichael","followers_url":"https://api.github.com/users/DaneCarmichael/followers","following_url":"https://api.github.com/users/DaneCarmichael/following{/other_user}","gists_url":"https://api.github.com/users/DaneCarmichael/gists{/gist_id}","starred_url":"https://api.github.com/users/DaneCarmichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaneCarmichael/subscriptions","organizations_url":"https://api.github.com/users/DaneCarmichael/orgs","repos_url":"https://api.github.com/users/DaneCarmichael/repos","events_url":"https://api.github.com/users/DaneCarmichael/events{/privacy}","received_events_url":"https://api.github.com/users/DaneCarmichael/received_events","type":"User","site_admin":false},"body":"User's now have user days which join a user, a day of the week, and a user day has many availabilities. User Days have flags for all day or non day availability for users. A new user is automatically given a user day for each day of the week with no availabilities.","created_at":"2016-07-19T22:09:30Z","updated_at":"2016-07-19T22:09:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd30006bf9b2d3b9a45ae2ac5a071b5befc042be","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/pulls/28/commits","review_comments_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/pulls/28/comments","review_comment_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/issues/28/comments","statuses_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/statuses/3c79a86b8939b39fa483dcd958d0c7e1664e6011","head":{"label":"lunarcollective:user-days","ref":"user-days","sha":"3c79a86b8939b39fa483dcd958d0c7e1664e6011","user":{"login":"lunarcollective","id":17710679,"avatar_url":"https://avatars.githubusercontent.com/u/17710679?v=3","gravatar_id":"","url":"https://api.github.com/users/lunarcollective","html_url":"https://github.com/lunarcollective","followers_url":"https://api.github.com/users/lunarcollective/followers","following_url":"https://api.github.com/users/lunarcollective/following{/other_user}","gists_url":"https://api.github.com/users/lunarcollective/gists{/gist_id}","starred_url":"https://api.github.com/users/lunarcollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunarcollective/subscriptions","organizations_url":"https://api.github.com/users/lunarcollective/orgs","repos_url":"https://api.github.com/users/lunarcollective/repos","events_url":"https://api.github.com/users/lunarcollective/events{/privacy}","received_events_url":"https://api.github.com/users/lunarcollective/received_events","type":"Organization","site_admin":false},"repo":{"id":61505109,"name":"employee-scheduling","full_name":"lunarcollective/employee-scheduling","owner":{"login":"lunarcollective","id":17710679,"avatar_url":"https://avatars.githubusercontent.com/u/17710679?v=3","gravatar_id":"","url":"https://api.github.com/users/lunarcollective","html_url":"https://github.com/lunarcollective","followers_url":"https://api.github.com/users/lunarcollective/followers","following_url":"https://api.github.com/users/lunarcollective/following{/other_user}","gists_url":"https://api.github.com/users/lunarcollective/gists{/gist_id}","starred_url":"https://api.github.com/users/lunarcollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunarcollective/subscriptions","organizations_url":"https://api.github.com/users/lunarcollective/orgs","repos_url":"https://api.github.com/users/lunarcollective/repos","events_url":"https://api.github.com/users/lunarcollective/events{/privacy}","received_events_url":"https://api.github.com/users/lunarcollective/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lunarcollective/employee-scheduling","description":null,"fork":false,"url":"https://api.github.com/repos/lunarcollective/employee-scheduling","forks_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/forks","keys_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/teams","hooks_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/hooks","issue_events_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/issues/events{/number}","events_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/events","assignees_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/assignees{/user}","branches_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/branches{/branch}","tags_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/tags","blobs_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/git/refs{/sha}","trees_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/statuses/{sha}","languages_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/languages","stargazers_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/stargazers","contributors_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/contributors","subscribers_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/subscribers","subscription_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/subscription","commits_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/commits{/sha}","git_commits_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/git/commits{/sha}","comments_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/comments{/number}","issue_comment_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/issues/comments{/number}","contents_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/contents/{+path}","compare_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/merges","archive_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/downloads","issues_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/issues{/number}","pulls_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/pulls{/number}","milestones_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/milestones{/number}","notifications_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/labels{/name}","releases_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/releases{/id}","deployments_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/deployments","created_at":"2016-06-19T23:29:22Z","updated_at":"2016-06-27T14:28:51Z","pushed_at":"2016-07-19T22:09:30Z","git_url":"git://github.com/lunarcollective/employee-scheduling.git","ssh_url":"git@github.com:lunarcollective/employee-scheduling.git","clone_url":"https://github.com/lunarcollective/employee-scheduling.git","svn_url":"https://github.com/lunarcollective/employee-scheduling","homepage":null,"size":501,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"lunarcollective:master","ref":"master","sha":"5da161c858f83d6649ed4834efaa8a766304327e","user":{"login":"lunarcollective","id":17710679,"avatar_url":"https://avatars.githubusercontent.com/u/17710679?v=3","gravatar_id":"","url":"https://api.github.com/users/lunarcollective","html_url":"https://github.com/lunarcollective","followers_url":"https://api.github.com/users/lunarcollective/followers","following_url":"https://api.github.com/users/lunarcollective/following{/other_user}","gists_url":"https://api.github.com/users/lunarcollective/gists{/gist_id}","starred_url":"https://api.github.com/users/lunarcollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunarcollective/subscriptions","organizations_url":"https://api.github.com/users/lunarcollective/orgs","repos_url":"https://api.github.com/users/lunarcollective/repos","events_url":"https://api.github.com/users/lunarcollective/events{/privacy}","received_events_url":"https://api.github.com/users/lunarcollective/received_events","type":"Organization","site_admin":false},"repo":{"id":61505109,"name":"employee-scheduling","full_name":"lunarcollective/employee-scheduling","owner":{"login":"lunarcollective","id":17710679,"avatar_url":"https://avatars.githubusercontent.com/u/17710679?v=3","gravatar_id":"","url":"https://api.github.com/users/lunarcollective","html_url":"https://github.com/lunarcollective","followers_url":"https://api.github.com/users/lunarcollective/followers","following_url":"https://api.github.com/users/lunarcollective/following{/other_user}","gists_url":"https://api.github.com/users/lunarcollective/gists{/gist_id}","starred_url":"https://api.github.com/users/lunarcollective/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunarcollective/subscriptions","organizations_url":"https://api.github.com/users/lunarcollective/orgs","repos_url":"https://api.github.com/users/lunarcollective/repos","events_url":"https://api.github.com/users/lunarcollective/events{/privacy}","received_events_url":"https://api.github.com/users/lunarcollective/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lunarcollective/employee-scheduling","description":null,"fork":false,"url":"https://api.github.com/repos/lunarcollective/employee-scheduling","forks_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/forks","keys_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/teams","hooks_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/hooks","issue_events_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/issues/events{/number}","events_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/events","assignees_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/assignees{/user}","branches_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/branches{/branch}","tags_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/tags","blobs_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/git/refs{/sha}","trees_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/statuses/{sha}","languages_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/languages","stargazers_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/stargazers","contributors_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/contributors","subscribers_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/subscribers","subscription_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/subscription","commits_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/commits{/sha}","git_commits_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/git/commits{/sha}","comments_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/comments{/number}","issue_comment_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/issues/comments{/number}","contents_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/contents/{+path}","compare_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/merges","archive_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/downloads","issues_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/issues{/number}","pulls_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/pulls{/number}","milestones_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/milestones{/number}","notifications_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/labels{/name}","releases_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/releases{/id}","deployments_url":"https://api.github.com/repos/lunarcollective/employee-scheduling/deployments","created_at":"2016-06-19T23:29:22Z","updated_at":"2016-06-27T14:28:51Z","pushed_at":"2016-07-19T22:09:30Z","git_url":"git://github.com/lunarcollective/employee-scheduling.git","ssh_url":"git@github.com:lunarcollective/employee-scheduling.git","clone_url":"https://github.com/lunarcollective/employee-scheduling.git","svn_url":"https://github.com/lunarcollective/employee-scheduling","homepage":null,"size":501,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lunarcollective/employee-scheduling/pulls/28"},"html":{"href":"https://github.com/lunarcollective/employee-scheduling/pull/28"},"issue":{"href":"https://api.github.com/repos/lunarcollective/employee-scheduling/issues/28"},"comments":{"href":"https://api.github.com/repos/lunarcollective/employee-scheduling/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/lunarcollective/employee-scheduling/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/lunarcollective/employee-scheduling/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lunarcollective/employee-scheduling/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/lunarcollective/employee-scheduling/statuses/3c79a86b8939b39fa483dcd958d0c7e1664e6011"}}}}
{"actor":{"display_login":"houndci-bot"}}