Skip to content

Commit

Permalink
Merge pull request #16 from alkemyTech/OT-17_Modelo_Roles
Browse files Browse the repository at this point in the history
Ot 17 modelo roles
  • Loading branch information
soyarielruiz authored Sep 20, 2022
2 parents 3c84390 + 1e5e1ae commit 1e0d146
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 3 additions & 0 deletions controllers/roleController.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class rolesController {}

module.exports = rolesController;
2 changes: 1 addition & 1 deletion models/role.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = (sequelize, DataTypes) => {
}
};
Role.init({
name: DataTypes.STRING,
name: DataTypes.STRING,
description: DataTypes.STRING,
deletedAt: DataTypes.DATE
}, {
Expand Down
8 changes: 1 addition & 7 deletions seeders/20201109013158-create-roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ module.exports = {
updatedAt: new Date
}], {});
},

down: async (queryInterface, Sequelize) => {
/**
* Add commands to revert seed here.
*
* Example:
* await queryInterface.bulkDelete('People', null, {});
*/
await queryInterface.bulkDelete('Roles', null, {});
}
};

0 comments on commit 1e0d146

Please sign in to comment.