{"action":"closed","issue":{"url":"https://api.github.com/repos/sequelize/cli/issues/192","labels_url":"https://api.github.com/repos/sequelize/cli/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/cli/issues/192/comments","events_url":"https://api.github.com/repos/sequelize/cli/issues/192/events","html_url":"https://github.com/sequelize/cli/issues/192","id":108455151,"number":192,"title":"Documentation -  When using Enum DataTypes, specifying tablename as a string will not work","user":{"login":"milovanderlinden","id":106038,"avatar_url":"https://avatars.githubusercontent.com/u/106038?v=3","gravatar_id":"","url":"https://api.github.com/users/milovanderlinden","html_url":"https://github.com/milovanderlinden","followers_url":"https://api.github.com/users/milovanderlinden/followers","following_url":"https://api.github.com/users/milovanderlinden/following{/other_user}","gists_url":"https://api.github.com/users/milovanderlinden/gists{/gist_id}","starred_url":"https://api.github.com/users/milovanderlinden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milovanderlinden/subscriptions","organizations_url":"https://api.github.com/users/milovanderlinden/orgs","repos_url":"https://api.github.com/users/milovanderlinden/repos","events_url":"https://api.github.com/users/milovanderlinden/events{/privacy}","received_events_url":"https://api.github.com/users/milovanderlinden/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-26T10:53:09Z","updated_at":"2015-09-28T06:10:10Z","closed_at":"2015-09-28T06:10:10Z","body":"```javascript\r\nqueryInterface.createTable(\"Organizations\",\r\n```\r\n\r\nWill fail (hard) when one of the attributes you define is an Enum. If you are using an Enum, your createTable should be written like:\r\n\r\n```javascript\r\nqueryInterface.createTable({\r\n        table: 'PluralName',\r\n        tableName: 'PluralName',\r\n        name: 'SingularName',\r\n        schema: 'mySchema',\r\n        delimiter: '.'\r\n      }\r\n```\r\n\r\nYou cannot forget one of these attributes or it will still fail.\r\n\r\n\r\n"}}