Skip to content

Commit

Permalink
Fix reference to incorrect object
Browse files Browse the repository at this point in the history
  • Loading branch information
john-craft committed Oct 24, 2023
1 parent f50c15b commit da3f038
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ jobs:
- name: Install Sequelize CLI and dependencies
run: |
cd ./users-api/src
npm install sequelize-cli
npm install # Assuming you have package.json with necessary dependencies
npm install
- name: Wait for Postgres to be ready
run: |
Expand Down
14 changes: 7 additions & 7 deletions users-api/src/migrations/20230921200634-create-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,31 @@ module.exports = {
type: Sequelize.STRING
},
last_name: {
type: DataTypes.STRING,
type: Sequelize.STRING,
allowNull: false,
},
phone: {
type: DataTypes.STRING,
type: Sequelize.STRING,
allowNull: false,
},
city: {
type: DataTypes.STRING,
type: Sequelize.STRING,
allowNull: false,
},
state: {
type: DataTypes.STRING,
type: Sequelize.STRING,
allowNull: false,
},
zip: {
type: DataTypes.STRING,
type: Sequelize.STRING,
allowNull: false,
},
gender: {
type: DataTypes.STRING,
type: Sequelize.STRING,
allowNull: false,
},
age: {
type: DataTypes.INTEGER,
type: Sequelize.INTEGER,
allowNull: false,
}
});
Expand Down

0 comments on commit da3f038

Please sign in to comment.