fixing a botched migration

This commit is contained in:
Paul Liverman III 2018-04-23 06:09:47 -07:00
parent f53c6c55a8
commit 4d83c01796
2 changed files with 7 additions and 2 deletions

View File

@ -32,5 +32,6 @@ class Simplex extends Application
return json: { success: true, :key } return json: { success: true, :key }
[console: "/console"]: => [console: "/console"]: =>
if @user and @user.admin
console = require "lapis.console" console = require "lapis.console"
return console.make(env: "all")(@) return console.make(env: "all")(@)

View File

@ -27,6 +27,10 @@ make_migrations {
create_index "tasks", "user_id" create_index "tasks", "user_id"
create_index "tasks", "user_id", "done" create_index "tasks", "user_id", "done"
-- botched migration
[1524517478]: => [1524517478]: =>
settings["simplex.key-increment"] = 0 settings["simplex.key-increment"] = 0
[1524517479]: =>
settings.set "simplex.key-increment", 0
} }