From 752be8d81d14b3a2a547dc9eb18976b4cce7545d Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 23 May 2016 02:58:33 -0400 Subject: clean up add_user query --- src/guff.cr | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/guff.cr b/src/guff.cr index 82ab5a9..00d6daa 100644 --- a/src/guff.cr +++ b/src/guff.cr @@ -387,19 +387,8 @@ module Guff ", add_user: " - INSERT INTO users( - role_id, - name, - email, - password, - is_active - ) VALUES ( - (SELECT role_id FROM roles where role = ?), - ?, - ?, - ?, - ? - ) + INSERT INTO users(role_id, name, email, password, is_active) VALUES + ((SELECT role_id FROM roles where role = ?), ?, ?, ?, ?) ", set_user: " -- cgit v1.2.3