mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
13 lines
282 B
JavaScript
13 lines
282 B
JavaScript
|
|
module.exports = {
|
|
up: (queryInterface, Sequelize) => {
|
|
return queryInterface.addIndex('users', {
|
|
unique: true,
|
|
fields: ['email']
|
|
}).catch(e => {})
|
|
},
|
|
|
|
down: (queryInterface, Sequelize) => {
|
|
return queryInterface.removeIndex('users', ['email'])
|
|
}
|
|
}
|