aboutsummaryrefslogtreecommitdiff
path: root/src/guff.cr
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-05-23 02:58:33 -0400
committerPaul Duncan <pabs@pablotron.org>2016-05-23 02:58:33 -0400
commit752be8d81d14b3a2a547dc9eb18976b4cce7545d (patch)
tree28c13bb7fe062310f21d17e213fabf46ecba8392 /src/guff.cr
parentac4726fa61215ced497ea13befd01d2fb40226e5 (diff)
downloadguff-752be8d81d14b3a2a547dc9eb18976b4cce7545d.tar.bz2
guff-752be8d81d14b3a2a547dc9eb18976b4cce7545d.zip
clean up add_user query
Diffstat (limited to 'src/guff.cr')
-rw-r--r--src/guff.cr15
1 files changed, 2 insertions, 13 deletions
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: "