diff options
Diffstat (limited to 'models/boards.js')
-rw-r--r-- | models/boards.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js index 14943d61..0f66e9d6 100644 --- a/models/boards.js +++ b/models/boards.js @@ -414,6 +414,9 @@ if (Meteor.isServer) { _id: 1, 'members.userId': 1, }, { unique: true }); + Boards._collection._ensureIndex({ + 'members.userId': 1, + }, { unique: true }); }); // Genesis: the first activity of the newly created board |