diff --git a/models/org.js b/models/org.js index cdbcbafcb..3d41a4367 100644 --- a/models/org.js +++ b/models/org.js @@ -118,4 +118,11 @@ Org.attachSchema( }), ); +if (Meteor.isServer) { + // Index for Organization name. + Meteor.startup(() => { + Org._collection._ensureIndex({ name: -1 }); + }); +} + export default Org;