flexxnn / sequelize-auto-migrations

Migration generator && runner for sequelize
MIT License
258 stars 166 forks source link

fixing outdated property names #71

Open moda20 opened 4 years ago

moda20 commented 4 years ago

changed the sequelize attribute to database and the attributes attribute on models to tableattributes

moda20 commented 4 years ago

This will create the right migrations with table attributes not only the table names fixes : #69

Naddyson commented 4 years ago

This pull request has an issue. sequelize is not defined. I changed and it's working fine with autogenerated models/index.js

Row 72 makemigrations.js From let sequelize = require(modelsDir).database; To let sequelize = require(modelsDir);