diff --git a/lib/migrate.js b/lib/migrate.js index a41fab8..8d8376b 100644 --- a/lib/migrate.js +++ b/lib/migrate.js @@ -205,6 +205,10 @@ const reverseModels = function(sequelize, models) attributes[column][property] = _val; } + if (property === 'validate') { + delete attributes[column][property]; + } + // remove getters, setters... if (typeof attributes[column][property] == 'function') delete attributes[column][property];