Skip to content

Instantly share code, notes, and snippets.

@lemon-tree
Created December 27, 2013 22:17
Show Gist options
  • Save lemon-tree/8153432 to your computer and use it in GitHub Desktop.
Save lemon-tree/8153432 to your computer and use it in GitHub Desktop.
Issue with ENUMs in Sequelize
// This works
var Something = db.define('something', {
action: Sequelize.ENUM('OPTIONA', 'OPTIONB')
});
// This doesn't
var Something = db.define('something', {
action: {
type: Sequelize.ENUM('OPTIONA', 'OPTIONB')
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment