CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/tasks/databases.rake
Views: 1904
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