Migrations

This commit is contained in:
Stefan Zermatten
2018-11-28 11:48:49 +02:00
parent c7fcb4de0c
commit dcc460d9e6
9 changed files with 84 additions and 83 deletions

View File

@@ -1,4 +1,5 @@
import SimpleSchema from 'simpl-schema';
import {makeChild} from "/imports/api/parenting.js";
let Actions = new Mongo.Collection("actions");
@@ -28,17 +29,17 @@ let actionSchema = new SimpleSchema({
},
//the immediate impact of doing this action (eg. -1 rages)
adjustments: {
type: [Schemas.Adjustment],
type: Array,
defaultValue: [],
},
"adjustments.$": {
type: Object,
},
});
Actions.attachSchema(actionSchema);
Actions.attachBehaviour("softRemovable");
// Actions.attachBehaviour("softRemovable");
makeChild(Actions);
Actions.allow(CHARACTER_SUBSCHEMA_ALLOW);
Actions.deny(CHARACTER_SUBSCHEMA_DENY);
export default Actions