From d9ad2ce483d8a204d59f01c1806b7a6e9147dbb9 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 31 Mar 2016 18:49:39 -0400 Subject: set default session --- src/guff/migrations.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/guff/migrations.cr b/src/guff/migrations.cr index c72edde..c32e671 100644 --- a/src/guff/migrations.cr +++ b/src/guff/migrations.cr @@ -139,7 +139,8 @@ module Guff updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, - data TEXT NOT NULL DEFAULT '' + data TEXT NOT NULL DEFAULT '{}' + CHECK (LENGTH(data) > 2) ) }, %{ CREATE INDEX in_sessions_sid on sessions(session_id) -- cgit v1.2.3