This commit is contained in:
Andrés Manelli 2018-04-16 14:33:53 -03:00
parent c12e003fd3
commit e5995477b8
8 changed files with 44 additions and 38 deletions

View file

@ -208,3 +208,14 @@ Migrations.add('add-checklist-items', () => {
);
});
});
Migrations.add('add-profile-view', () => {
Users.find().forEach((user) => {
// Set default view
Users.direct.update(
{ _id: user._id },
{ $set: { 'profile.boardView': 'board-view-lists' } },
noValidate
);
});
});