{"action":"created","comment":{"url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/pulls/comments/169230894","pull_request_review_id":97722067,"id":169230894,"diff_hunk":"@@ -0,0 +1,42 @@\n+ActiveAdmin.register Schedule do\n+  belongs_to :member, shallow: true\n+\n+  actions :index, :create, :new\n+  permit_params :member_id, :team_id, :day\n+  config.filters = false\n+\n+  # TODO: viewはカレンダーに変更予定\n+  index do\n+    column :day\n+    column :member\n+    column :team\n+    actions defaults: false do |schedule|\n+      item I18n.t('active_admin.delete'), admin_schedule_path(schedule),\n+           class: 'delete_link schedule_link',\n+           method: :delete,\n+           data: { confirm: I18n.t('active_admin.delete_confirmation') }\n+    end\n+  end\n+\n+  controller do\n+    # active_adminの定義に反するため、自分で定義している。できてば廃止したい。\n+    def destroy\n+      schedule = Schedule.find(permitted_params[:id])\n+      authorize! :destroy, schedule\n+      schedule.destroy\n+      redirect_to admin_member_schedules_path(current_member.id)\n+    end\n+  end\n+\n+  form do |f|\n+    f.inputs do\n+      f.input :team","path":"app/admin/members/schedules.rb","position":33,"original_position":33,"commit_id":"721e2c80f08389fb2b8fa64ff02562e03546f9ed","original_commit_id":"721e2c80f08389fb2b8fa64ff02562e03546f9ed","user":{"login":"RossyWhite","id":16730512,"avatar_url":"https://avatars2.githubusercontent.com/u/16730512?v=4","gravatar_id":"","url":"https://api.github.com/users/RossyWhite","html_url":"https://github.com/RossyWhite","followers_url":"https://api.github.com/users/RossyWhite/followers","following_url":"https://api.github.com/users/RossyWhite/following{/other_user}","gists_url":"https://api.github.com/users/RossyWhite/gists{/gist_id}","starred_url":"https://api.github.com/users/RossyWhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RossyWhite/subscriptions","organizations_url":"https://api.github.com/users/RossyWhite/orgs","repos_url":"https://api.github.com/users/RossyWhite/repos","events_url":"https://api.github.com/users/RossyWhite/events{/privacy}","received_events_url":"https://api.github.com/users/RossyWhite/received_events","type":"User","site_admin":false},"body":"作業してて気づいたのですが、現状だと、\r\n・[Member] has many [Schedule]\r\n・[Team] has many [Schedule]\r\nなのですが、\r\n\r\n[MemberTeam] has many [Schedule]にすることも不可能ではない気がしたのですが、\r\nどう思われますか?\r\n\r\n@takeyuweb ","created_at":"2018-02-20T07:05:30Z","updated_at":"2018-02-20T07:05:30Z","html_url":"https://github.com/takeyuwebcoltd/takeyuweb-rails/pull/33#discussion_r169230894","pull_request_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/pulls/33","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/pulls/comments/169230894"},"html":{"href":"https://github.com/takeyuwebcoltd/takeyuweb-rails/pull/33#discussion_r169230894"},"pull_request":{"href":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/pulls/33"}},"in_reply_to_id":169048336},"pull_request":{"url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/pulls/33","id":168857088,"html_url":"https://github.com/takeyuwebcoltd/takeyuweb-rails/pull/33","diff_url":"https://github.com/takeyuwebcoltd/takeyuweb-rails/pull/33.diff","patch_url":"https://github.com/takeyuwebcoltd/takeyuweb-rails/pull/33.patch","issue_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/issues/33","number":33,"state":"open","locked":false,"title":"稼働日登録","user":{"login":"RossyWhite","id":16730512,"avatar_url":"https://avatars2.githubusercontent.com/u/16730512?v=4","gravatar_id":"","url":"https://api.github.com/users/RossyWhite","html_url":"https://github.com/RossyWhite","followers_url":"https://api.github.com/users/RossyWhite/followers","following_url":"https://api.github.com/users/RossyWhite/following{/other_user}","gists_url":"https://api.github.com/users/RossyWhite/gists{/gist_id}","starred_url":"https://api.github.com/users/RossyWhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RossyWhite/subscriptions","organizations_url":"https://api.github.com/users/RossyWhite/orgs","repos_url":"https://api.github.com/users/RossyWhite/repos","events_url":"https://api.github.com/users/RossyWhite/events{/privacy}","received_events_url":"https://api.github.com/users/RossyWhite/received_events","type":"User","site_admin":false},"body":"#26 \r\n\r\nviewについては、#27 で作る ","created_at":"2018-02-13T14:22:38Z","updated_at":"2018-02-20T07:05:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5db496b36fc394a73d20e15208591f68490f54fb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/pulls/33/commits","review_comments_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/pulls/33/comments","review_comment_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/issues/33/comments","statuses_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/statuses/721e2c80f08389fb2b8fa64ff02562e03546f9ed","head":{"label":"takeyuwebcoltd:feature/working_schedule","ref":"feature/working_schedule","sha":"721e2c80f08389fb2b8fa64ff02562e03546f9ed","user":{"login":"takeyuwebcoltd","id":24970198,"avatar_url":"https://avatars3.githubusercontent.com/u/24970198?v=4","gravatar_id":"","url":"https://api.github.com/users/takeyuwebcoltd","html_url":"https://github.com/takeyuwebcoltd","followers_url":"https://api.github.com/users/takeyuwebcoltd/followers","following_url":"https://api.github.com/users/takeyuwebcoltd/following{/other_user}","gists_url":"https://api.github.com/users/takeyuwebcoltd/gists{/gist_id}","starred_url":"https://api.github.com/users/takeyuwebcoltd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takeyuwebcoltd/subscriptions","organizations_url":"https://api.github.com/users/takeyuwebcoltd/orgs","repos_url":"https://api.github.com/users/takeyuwebcoltd/repos","events_url":"https://api.github.com/users/takeyuwebcoltd/events{/privacy}","received_events_url":"https://api.github.com/users/takeyuwebcoltd/received_events","type":"Organization","site_admin":false},"repo":{"id":103646646,"name":"takeyuweb-rails","full_name":"takeyuwebcoltd/takeyuweb-rails","owner":{"login":"takeyuwebcoltd","id":24970198,"avatar_url":"https://avatars3.githubusercontent.com/u/24970198?v=4","gravatar_id":"","url":"https://api.github.com/users/takeyuwebcoltd","html_url":"https://github.com/takeyuwebcoltd","followers_url":"https://api.github.com/users/takeyuwebcoltd/followers","following_url":"https://api.github.com/users/takeyuwebcoltd/following{/other_user}","gists_url":"https://api.github.com/users/takeyuwebcoltd/gists{/gist_id}","starred_url":"https://api.github.com/users/takeyuwebcoltd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takeyuwebcoltd/subscriptions","organizations_url":"https://api.github.com/users/takeyuwebcoltd/orgs","repos_url":"https://api.github.com/users/takeyuwebcoltd/repos","events_url":"https://api.github.com/users/takeyuwebcoltd/events{/privacy}","received_events_url":"https://api.github.com/users/takeyuwebcoltd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/takeyuwebcoltd/takeyuweb-rails","description":"Corporate website","fork":false,"url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails","forks_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/forks","keys_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/teams","hooks_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/hooks","issue_events_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/issues/events{/number}","events_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/events","assignees_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/assignees{/user}","branches_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/branches{/branch}","tags_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/tags","blobs_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/languages","stargazers_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/stargazers","contributors_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/contributors","subscribers_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/subscribers","subscription_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/subscription","commits_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/contents/{+path}","compare_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/merges","archive_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/downloads","issues_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/issues{/number}","pulls_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/labels{/name}","releases_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/releases{/id}","deployments_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/deployments","created_at":"2017-09-15T10:48:46Z","updated_at":"2018-02-20T04:45:49Z","pushed_at":"2018-02-20T03:33:39Z","git_url":"git://github.com/takeyuwebcoltd/takeyuweb-rails.git","ssh_url":"git@github.com:takeyuwebcoltd/takeyuweb-rails.git","clone_url":"https://github.com/takeyuwebcoltd/takeyuweb-rails.git","svn_url":"https://github.com/takeyuwebcoltd/takeyuweb-rails","homepage":"https://takeyuweb.co.jp/","size":2566,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"takeyuwebcoltd:master","ref":"master","sha":"d15bfb23cfa2c37187ad060531ffe393ff531f39","user":{"login":"takeyuwebcoltd","id":24970198,"avatar_url":"https://avatars3.githubusercontent.com/u/24970198?v=4","gravatar_id":"","url":"https://api.github.com/users/takeyuwebcoltd","html_url":"https://github.com/takeyuwebcoltd","followers_url":"https://api.github.com/users/takeyuwebcoltd/followers","following_url":"https://api.github.com/users/takeyuwebcoltd/following{/other_user}","gists_url":"https://api.github.com/users/takeyuwebcoltd/gists{/gist_id}","starred_url":"https://api.github.com/users/takeyuwebcoltd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takeyuwebcoltd/subscriptions","organizations_url":"https://api.github.com/users/takeyuwebcoltd/orgs","repos_url":"https://api.github.com/users/takeyuwebcoltd/repos","events_url":"https://api.github.com/users/takeyuwebcoltd/events{/privacy}","received_events_url":"https://api.github.com/users/takeyuwebcoltd/received_events","type":"Organization","site_admin":false},"repo":{"id":103646646,"name":"takeyuweb-rails","full_name":"takeyuwebcoltd/takeyuweb-rails","owner":{"login":"takeyuwebcoltd","id":24970198,"avatar_url":"https://avatars3.githubusercontent.com/u/24970198?v=4","gravatar_id":"","url":"https://api.github.com/users/takeyuwebcoltd","html_url":"https://github.com/takeyuwebcoltd","followers_url":"https://api.github.com/users/takeyuwebcoltd/followers","following_url":"https://api.github.com/users/takeyuwebcoltd/following{/other_user}","gists_url":"https://api.github.com/users/takeyuwebcoltd/gists{/gist_id}","starred_url":"https://api.github.com/users/takeyuwebcoltd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takeyuwebcoltd/subscriptions","organizations_url":"https://api.github.com/users/takeyuwebcoltd/orgs","repos_url":"https://api.github.com/users/takeyuwebcoltd/repos","events_url":"https://api.github.com/users/takeyuwebcoltd/events{/privacy}","received_events_url":"https://api.github.com/users/takeyuwebcoltd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/takeyuwebcoltd/takeyuweb-rails","description":"Corporate website","fork":false,"url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails","forks_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/forks","keys_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/teams","hooks_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/hooks","issue_events_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/issues/events{/number}","events_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/events","assignees_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/assignees{/user}","branches_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/branches{/branch}","tags_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/tags","blobs_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/languages","stargazers_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/stargazers","contributors_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/contributors","subscribers_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/subscribers","subscription_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/subscription","commits_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/contents/{+path}","compare_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/merges","archive_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/downloads","issues_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/issues{/number}","pulls_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/labels{/name}","releases_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/releases{/id}","deployments_url":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/deployments","created_at":"2017-09-15T10:48:46Z","updated_at":"2018-02-20T04:45:49Z","pushed_at":"2018-02-20T03:33:39Z","git_url":"git://github.com/takeyuwebcoltd/takeyuweb-rails.git","ssh_url":"git@github.com:takeyuwebcoltd/takeyuweb-rails.git","clone_url":"https://github.com/takeyuwebcoltd/takeyuweb-rails.git","svn_url":"https://github.com/takeyuwebcoltd/takeyuweb-rails","homepage":"https://takeyuweb.co.jp/","size":2566,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/pulls/33"},"html":{"href":"https://github.com/takeyuwebcoltd/takeyuweb-rails/pull/33"},"issue":{"href":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/issues/33"},"comments":{"href":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/takeyuwebcoltd/takeyuweb-rails/statuses/721e2c80f08389fb2b8fa64ff02562e03546f9ed"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"RossyWhite"}}