From c6bfca312c4ac9eb10f230625743215295b44be6 Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Wed, 22 Jan 2020 13:31:48 +0100 Subject: [PATCH] Favor createdAt over timestamp - it's more human readable and consistent with all other nodes in production --- backend/src/models/Migration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/models/Migration.js b/backend/src/models/Migration.js index e36d10ac3..1b697c8ad 100644 --- a/backend/src/models/Migration.js +++ b/backend/src/models/Migration.js @@ -1,5 +1,5 @@ export default { title: { type: 'string', primary: true, token: true }, description: { type: 'string' }, - timestamp: { type: 'number', unique: true }, + createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() }, }