Skip to content
This repository was archived by the owner on Aug 17, 2022. It is now read-only.

Commit 226eb25

Browse files
authored
Merge pull request #36 from C45tr0/feature/sequelize-v5-upgrades
fix: use model.rawAttributes when model.attributes is removed
2 parents 6cd3c1f + da506ac commit 226eb25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/migrate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const reverseModels = function(sequelize, models)
171171

172172
for (let model in models)
173173
{
174-
let attributes = models[model].attributes;
174+
let attributes = models[model].attributes || models[model].rawAttributes;
175175

176176
for (let column in attributes)
177177
{

0 commit comments

Comments
 (0)