{"action":"created","issue":{"url":"https://api.github.com/repos/ga-dc/project2/issues/351","labels_url":"https://api.github.com/repos/ga-dc/project2/issues/351/labels{/name}","comments_url":"https://api.github.com/repos/ga-dc/project2/issues/351/comments","events_url":"https://api.github.com/repos/ga-dc/project2/issues/351/events","html_url":"https://github.com/ga-dc/project2/issues/351","id":117451558,"number":351,"title":"Model/Migration Question","user":{"login":"dan-ator","id":14224854,"avatar_url":"https://avatars.githubusercontent.com/u/14224854?v=3","gravatar_id":"","url":"https://api.github.com/users/dan-ator","html_url":"https://github.com/dan-ator","followers_url":"https://api.github.com/users/dan-ator/followers","following_url":"https://api.github.com/users/dan-ator/following{/other_user}","gists_url":"https://api.github.com/users/dan-ator/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-ator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-ator/subscriptions","organizations_url":"https://api.github.com/users/dan-ator/orgs","repos_url":"https://api.github.com/users/dan-ator/repos","events_url":"https://api.github.com/users/dan-ator/events{/privacy}","received_events_url":"https://api.github.com/users/dan-ator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"RobertAKARobin","id":6268177,"avatar_url":"https://avatars.githubusercontent.com/u/6268177?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertAKARobin","html_url":"https://github.com/RobertAKARobin","followers_url":"https://api.github.com/users/RobertAKARobin/followers","following_url":"https://api.github.com/users/RobertAKARobin/following{/other_user}","gists_url":"https://api.github.com/users/RobertAKARobin/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertAKARobin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertAKARobin/subscriptions","organizations_url":"https://api.github.com/users/RobertAKARobin/orgs","repos_url":"https://api.github.com/users/RobertAKARobin/repos","events_url":"https://api.github.com/users/RobertAKARobin/events{/privacy}","received_events_url":"https://api.github.com/users/RobertAKARobin/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-11-17T21:12:08Z","updated_at":"2015-11-17T21:17:28Z","closed_at":null,"body":"No specific error, just adding a model/migration and want to make sure I have the right association built in.  So basically a User has many Reports and a Report belongs to Location.  Now I am adding Profile in a one to one association with User.  The question is, I want to make a column in Profile that will be a link to the Reports created by that User.  So is the link between User and Reports enough for this, or is it wise to include a foreign key for Reports?"},"comment":{"url":"https://api.github.com/repos/ga-dc/project2/issues/comments/157509830","html_url":"https://github.com/ga-dc/project2/issues/351#issuecomment-157509830","issue_url":"https://api.github.com/repos/ga-dc/project2/issues/351","id":157509830,"user":{"login":"RobertAKARobin","id":6268177,"avatar_url":"https://avatars.githubusercontent.com/u/6268177?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertAKARobin","html_url":"https://github.com/RobertAKARobin","followers_url":"https://api.github.com/users/RobertAKARobin/followers","following_url":"https://api.github.com/users/RobertAKARobin/following{/other_user}","gists_url":"https://api.github.com/users/RobertAKARobin/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertAKARobin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertAKARobin/subscriptions","organizations_url":"https://api.github.com/users/RobertAKARobin/orgs","repos_url":"https://api.github.com/users/RobertAKARobin/repos","events_url":"https://api.github.com/users/RobertAKARobin/events{/privacy}","received_events_url":"https://api.github.com/users/RobertAKARobin/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T21:17:28Z","updated_at":"2015-11-17T21:17:28Z","body":"Gotcha. So to be sure, you want to be able to say `@user.reports`, correct?\r\n\r\nYou would do this with a \"has many through\". Here's an example: https://github.com/ga-dc/garnet/blob/master/app/models/group.rb#L14"}}