Skip to content

Commit 78b0c9a

Browse files
add hash to schema
1 parent db6aad5 commit 78b0c9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/models/mongo/schemas/infra-code-version.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ var InfraCodeVersionSchema = new Schema({
103103
'default': Date.now,
104104
index: true,
105105
validate: validators.beforeNow({model: 'ContextVersion', literal: 'Created'})
106-
}
106+
},
107+
hash: {
108+
type: String
109+
},
107110
});
108111

109112
extend(InfraCodeVersionSchema.methods, BaseSchema.methods);

0 commit comments

Comments
 (0)