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/match.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'models/match.js') diff --git a/models/match.js b/models/match.js index 4faf015..dfc0b71 100644 --- a/models/match.js +++ b/models/match.js @@ -19,7 +19,8 @@ module.exports = function(sequelize, DataTypes) { }, created_at: { type: DataTypes.TIME, - allowNull: false + allowNull: false, + defaultValue: sequelize.fn('current_timestamp') }, duration: { type: DataTypes.INTEGER(5).UNSIGNED, -- cgit v1.3.1