mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 09:02:01 +01:00
19 lines
397 B
JavaScript
19 lines
397 B
JavaScript
|
|
module.exports = {
|
|
up: (queryInterface, Sequelize) => {
|
|
return queryInterface.addIndex('users', {
|
|
unique: true,
|
|
fields: ['email']
|
|
}).catch(e => {})
|
|
},
|
|
|
|
down: (queryInterface, Sequelize) => {
|
|
/*
|
|
Add reverting commands here.
|
|
Return a promise to correctly handle asynchronicity.
|
|
|
|
Example:
|
|
return queryInterface.dropTable('users');
|
|
*/
|
|
}
|
|
};
|