Skip to content

Commit

Permalink
updated user model and migration to make ethAddress a mandatory field…
Browse files Browse the repository at this point in the history
… in the interest of time.
  • Loading branch information
hmalik88 committed Nov 4, 2020
1 parent aeee9c1 commit b2881ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion migrations/202011031728-CreateUserTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = {
type: Sequelize.STRING
},
ethAddress: {
allowNull: true,
allowNull: false,
type: Sequelize.STRING
}
});
Expand Down
2 changes: 1 addition & 1 deletion models/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = (sequelize, DataTypes, Deferrable) => {
},
ethAddress: {
type: DataTypes.STRING,
allowNull: true,
allowNull: false,
unique: true
}
})
Expand Down

0 comments on commit b2881ef

Please sign in to comment.