blockstream-satellite-api/Rakefile
2019-01-16 10:22:44 -08:00

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