{"action":"opened","issue":{"url":"https://api.github.com/repos/YaleSTC/reservations/issues/1086","labels_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1086/labels{/name}","comments_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1086/comments","events_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1086/events","html_url":"https://github.com/YaleSTC/reservations/issues/1086","id":53565108,"number":1086,"title":"Add category_id field to Reservation","user":{"login":"squidgetx","id":6618711,"avatar_url":"https://avatars.githubusercontent.com/u/6618711?v=3","gravatar_id":"","url":"https://api.github.com/users/squidgetx","html_url":"https://github.com/squidgetx","followers_url":"https://api.github.com/users/squidgetx/followers","following_url":"https://api.github.com/users/squidgetx/following{/other_user}","gists_url":"https://api.github.com/users/squidgetx/gists{/gist_id}","starred_url":"https://api.github.com/users/squidgetx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squidgetx/subscriptions","organizations_url":"https://api.github.com/users/squidgetx/orgs","repos_url":"https://api.github.com/users/squidgetx/repos","events_url":"https://api.github.com/users/squidgetx/events{/privacy}","received_events_url":"https://api.github.com/users/squidgetx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-06T21:24:15Z","updated_at":"2015-01-06T21:24:15Z","closed_at":null,"body":"Had this idea while trying to re write reports.\r\n\r\nThoughts? This would be easily pulled from the reservations' equipment model at the time of creation. Sure, you could pull it from the equipment model when you needed to and not store it, but this would solve quite a few issues we have where we have to elaborately avoid N+1 queries by working around the fact that category and reservation are not directly tied. Plus then you could get all reservations that match a certain category using a scoped query."}}