From dd2a4f706f20b83144e637896c55c550afa7030a Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 14 Jul 2017 18:58:17 +0200 Subject: 2.14.0 rewrite --- models/participant.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'models/participant.js') diff --git a/models/participant.js b/models/participant.js index d7fc638..5579f31 100644 --- a/models/participant.js +++ b/models/participant.js @@ -51,7 +51,8 @@ module.exports = function(sequelize, DataTypes) { }, created_at: { type: DataTypes.TIME, - allowNull: false + allowNull: false, + defaultValue: sequelize.fn('current_timestamp') }, actor: { type: DataTypes.STRING(16), -- cgit v1.3.1