{"action":"opened","issue":{"url":"https://api.github.com/repos/jinzhu/gorm/issues/1169","repository_url":"https://api.github.com/repos/jinzhu/gorm","labels_url":"https://api.github.com/repos/jinzhu/gorm/issues/1169/labels{/name}","comments_url":"https://api.github.com/repos/jinzhu/gorm/issues/1169/comments","events_url":"https://api.github.com/repos/jinzhu/gorm/issues/1169/events","html_url":"https://github.com/jinzhu/gorm/issues/1169","id":173951947,"number":1169,"title":"Create Unique constraint for column","user":{"login":"Niondir","id":373559,"avatar_url":"https://avatars.githubusercontent.com/u/373559?v=3","gravatar_id":"","url":"https://api.github.com/users/Niondir","html_url":"https://github.com/Niondir","followers_url":"https://api.github.com/users/Niondir/followers","following_url":"https://api.github.com/users/Niondir/following{/other_user}","gists_url":"https://api.github.com/users/Niondir/gists{/gist_id}","starred_url":"https://api.github.com/users/Niondir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Niondir/subscriptions","organizations_url":"https://api.github.com/users/Niondir/orgs","repos_url":"https://api.github.com/users/Niondir/repos","events_url":"https://api.github.com/users/Niondir/events{/privacy}","received_events_url":"https://api.github.com/users/Niondir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-30T07:50:29Z","updated_at":"2016-08-30T07:50:29Z","closed_at":null,"body":"Hi,\r\nI can declare my column as `gorm:\"unique\"` and the unique constraint is created during auto migrate. But when I add the qunique constraint later it is not added and I can not find any function to simply do it my self. With the unique_index everything works as expected.\r\n\r\nAny thoughts about this? Probably I go with unique indexes for now ;)"}}
{"actor":{"display_login":"Niondir"}}