{"action":"opened","issue":{"url":"https://api.github.com/repos/RolifyCommunity/rolify/issues/319","labels_url":"https://api.github.com/repos/RolifyCommunity/rolify/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/RolifyCommunity/rolify/issues/319/comments","events_url":"https://api.github.com/repos/RolifyCommunity/rolify/issues/319/events","html_url":"https://github.com/RolifyCommunity/rolify/issues/319","id":57691862,"number":319,"title":"Avoiding duplicate role data","user":{"login":"Elyasin","id":1544924,"avatar_url":"https://avatars.githubusercontent.com/u/1544924?v=3","gravatar_id":"","url":"https://api.github.com/users/Elyasin","html_url":"https://github.com/Elyasin","followers_url":"https://api.github.com/users/Elyasin/followers","following_url":"https://api.github.com/users/Elyasin/following{/other_user}","gists_url":"https://api.github.com/users/Elyasin/gists{/gist_id}","starred_url":"https://api.github.com/users/Elyasin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Elyasin/subscriptions","organizations_url":"https://api.github.com/users/Elyasin/orgs","repos_url":"https://api.github.com/users/Elyasin/repos","events_url":"https://api.github.com/users/Elyasin/events{/privacy}","received_events_url":"https://api.github.com/users/Elyasin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-14T12:39:04Z","updated_at":"2015-02-14T12:39:04Z","closed_at":null,"body":"Hi there, first of all thank you for the gem. It is very useful to me.\r\n\r\nI noticed that I can add the same role for an instance twice, i.e. duplicates are not avoided. At the moment I have a workaround for this.\r\n\r\nHowever I thought maybe there were use cases for this, since I don't see why one could have a duplicate entry for that. Or do you have a suggestion how to avoid it? Unique index or so?\r\n\r\nI am using Rails 4.2, Mongoid, rolify with authorization.\r\n\r\nRegards,\r\nEly"}}