/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/tasks/databases.rake
9 строк
439 B
David Maloney
still trying to fix these migrations
11 май 2016, 22:54
Не верифицирован
11 май 2016, 22:54
7edaa2a
Код
Авторство
О чём код?
namespace :db do # Add onto the task so that after adding Rails.application.paths['db/migrate'] task :load_config do # It's important to call to_a or the paths will just be relative and not realpaths gem_migrations = Metasploit::Credential::Engine.instance.paths['db/migrate'].to_a ActiveRecord::Migrator.migrations_paths += gem_migrations ActiveRecord::Tasks::DatabaseTasks.migrations_paths += gem_migrations end end