Teams/Organizations part 2, in progress. Table: org, add index for name field.

Thanks to xet7 !

Related #802
This commit is contained in:
Lauri Ojansivu 2019-07-15 22:47:30 +03:00
parent 2cedbcb9b3
commit 583f32e5c5

View file

@ -118,4 +118,11 @@ Org.attachSchema(
}),
);
if (Meteor.isServer) {
// Index for Organization name.
Meteor.startup(() => {
Org._collection._ensureIndex({ name: -1 });
});
}
export default Org;