require "minitest/test_task" task :default => :test Minitest::TestTask.create task :migrate do # Always applies up to latest version for now version = nil require_relative "lib/db" require "logger" Sequel.extension :migration DB.loggers << Logger.new($stdout) if DB.loggers.empty? Sequel::Migrator.apply(DB, "migrate", version) end