From db35e3eeae4e4461e83d62a78cbdd9548331a44c Mon Sep 17 00:00:00 2001 From: Scimonster Date: Mon, 17 Jun 2019 21:08:07 +0300 Subject: [PATCH] Remove validations from diff --- lib/migrate.js | 4 ++++ 1 file changed, 4 insertions(+) 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];