/// migrate((app) => { const collection = app.findCollectionByNameOrId("pbc_484305853") // update collection data unmarshal({ "createRule": "@request.auth.id != \"\" && @request.auth.id = @request.body.user.id", "deleteRule": "@request.auth.id != \"\" && @request.auth.id = user.id", "listRule": "@request.auth.id != \"\" && @request.auth.id = user.id", "updateRule": "@request.auth.id != \"\" && @request.auth.id = user.id", "viewRule": "@request.auth.id = user.id" }, collection) return app.save(collection) }, (app) => { const collection = app.findCollectionByNameOrId("pbc_484305853") // update collection data unmarshal({ "createRule": null, "deleteRule": null, "listRule": "", "updateRule": null, "viewRule": null }, collection) return app.save(collection) })