mirror of
https://github.com/Blockstream/satellite-api.git
synced 2024-11-19 04:50:01 +01:00
12 lines
301 B
Ruby
12 lines
301 B
Ruby
require 'sinatra/activerecord'
|
|
require "sinatra/activerecord/rake"
|
|
require_relative 'constants'
|
|
|
|
Rake::Task['db:drop'].enhance do
|
|
FileUtils.remove_entry_secure(MESSAGE_STORE_PATH) if File.exist?(MESSAGE_STORE_PATH)
|
|
end
|
|
|
|
Rake::Task['db:create'].enhance do
|
|
FileUtils.mkdir_p(MESSAGE_STORE_PATH)
|
|
end
|