Skip to content

Commit

Permalink
Revert "Revert "turned on users""
Browse files Browse the repository at this point in the history
This reverts commit d6bf5c4.
  • Loading branch information
TangentFoxy committed Aug 3, 2016
1 parent d6bf5c4 commit 2709dd1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions app.moon
Expand Up @@ -5,6 +5,7 @@ import respond_to, json_params from require "lapis.application"

class extends lapis.Application
@include "githook/githook"
@include "users/users"
@include "ksp"
@include "polls"
@include "redirects"
Expand Down
1 change: 1 addition & 0 deletions config.moon
Expand Up @@ -13,3 +13,4 @@ config "production", ->
num_workers 4
code_cache "on"
githook true
digest_rounds 9
8 changes: 8 additions & 0 deletions migrations.moon
Expand Up @@ -60,4 +60,12 @@ import create_table, types, drop_table from require "lapis.db.schema"
{"created_at", types.time}
{"updated_at", types.time}
}
[5]: =>
create_table "users", {
{"id", types.serial primary_key: true}
{"name", types.varchar unique: true}
{"salt", types.text}
{"digest", types.text}
{"admin", types.boolean default: false}
}
}

0 comments on commit 2709dd1

Please sign in to comment.