{"action":"closed","issue":{"url":"https://api.github.com/repos/jinzhu/gorm/issues/528","labels_url":"https://api.github.com/repos/jinzhu/gorm/issues/528/labels{/name}","comments_url":"https://api.github.com/repos/jinzhu/gorm/issues/528/comments","events_url":"https://api.github.com/repos/jinzhu/gorm/issues/528/events","html_url":"https://github.com/jinzhu/gorm/issues/528","id":86902796,"number":528,"title":"SingularTable is not working on specific model.","user":{"login":"dorajistyle","id":1202809,"avatar_url":"https://avatars.githubusercontent.com/u/1202809?v=3","gravatar_id":"","url":"https://api.github.com/users/dorajistyle","html_url":"https://github.com/dorajistyle","followers_url":"https://api.github.com/users/dorajistyle/followers","following_url":"https://api.github.com/users/dorajistyle/following{/other_user}","gists_url":"https://api.github.com/users/dorajistyle/gists{/gist_id}","starred_url":"https://api.github.com/users/dorajistyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dorajistyle/subscriptions","organizations_url":"https://api.github.com/users/dorajistyle/orgs","repos_url":"https://api.github.com/users/dorajistyle/repos","events_url":"https://api.github.com/users/dorajistyle/events{/privacy}","received_events_url":"https://api.github.com/users/dorajistyle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jinzhu/gorm/labels/%23schema","name":"#schema","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-10T09:25:56Z","updated_at":"2016-01-03T12:07:56Z","closed_at":"2016-01-03T12:07:56Z","body":"Hello jinzhu,\r\n\r\nI'm using 087b7083ad1154ff0573d560b64310e4869a2820 because the problem below.\r\n\r\nhttps://github.com/jinzhu/gorm/issues/437\r\n\r\nToday I updated gorm as cde05781a05feb80def1aa46edac24a57ec93b30\r\n\r\nAnd I found a new issue.\r\n\r\ndb.SingularTable(true) is not working on specific model.\r\n\r\nI have 'User' model and 'Role' model.\r\n'User' model works fine.\r\nBut 'Role' did not working.\r\ngorm tried to find roles table.\r\nWhen I tried to db.AutoMigrate, it generate 'roles' table."}}