diff options
author | jessib <jessib@riseup.net> | 2014-01-13 10:22:24 -0800 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2014-01-13 10:22:24 -0800 |
commit | a421fc0a1fc2af9c91f459c6cfe256909c618d8e (patch) | |
tree | 127fe60ba34d6ae691c222e070f09e1802f88119 /lib/tapicero/user_database.rb | |
parent | 638e6a83a923e61d8b320818a39befd62529ae1a (diff) | |
parent | a4fa58013a97344a4af431c64b471211b020bea0 (diff) |
Merge pull request #8 from azul/bugfix/fix-for-revisions-starting-above-1
Revisions sometimes start at 2 - work around this
Diffstat (limited to 'lib/tapicero/user_database.rb')
-rw-r--r-- | lib/tapicero/user_database.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tapicero/user_database.rb b/lib/tapicero/user_database.rb index 5266b4a..cf43d98 100644 --- a/lib/tapicero/user_database.rb +++ b/lib/tapicero/user_database.rb @@ -9,6 +9,13 @@ module Tapicero @name = name end + def prepare(config) + db.create + db.secure(config.options[:security]) + db.add_design_docs + logger.info "Prepared storage " + name + end + def create retry_request_once "Creating database" do create_db |