Sha256: 235996824d5acdfbcabf4d462c1bbaae9bc6eb4269e583c6f55c8ad024fdefa8

Contents?: true

Size: 449 Bytes

Versions: 48

Compression:

Stored size: 449 Bytes

Contents

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
    ActiveRecord::Migrator.migrations_paths += MetasploitDataModels::Engine.instance.paths['db/migrate'].to_a
    ActiveRecord::Tasks::DatabaseTasks.migrations_paths += MetasploitDataModels::Engine.instance.paths['db/migrate'].to_a
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
metasploit-credential-6.0.11 lib/tasks/databases.rake
metasploit-credential-6.0.10 lib/tasks/databases.rake
metasploit-credential-6.0.9 lib/tasks/databases.rake
metasploit-credential-6.0.8 lib/tasks/databases.rake
metasploit-credential-6.0.7 lib/tasks/databases.rake
metasploit-credential-6.0.6 lib/tasks/databases.rake
metasploit-credential-6.0.5 lib/tasks/databases.rake
metasploit-credential-6.0.4 lib/tasks/databases.rake
metasploit-credential-6.0.3 lib/tasks/databases.rake
metasploit-credential-6.0.2 lib/tasks/databases.rake
metasploit-credential-6.0.1 lib/tasks/databases.rake
metasploit-credential-6.0.0 lib/tasks/databases.rake
metasploit-credential-5.0.9 lib/tasks/databases.rake
metasploit-credential-5.0.8 lib/tasks/databases.rake
metasploit-credential-5.0.7 lib/tasks/databases.rake
metasploit-credential-5.0.6 lib/tasks/databases.rake
metasploit-credential-5.0.5 lib/tasks/databases.rake
metasploit-credential-5.0.4 lib/tasks/databases.rake
metasploit-credential-5.0.3 lib/tasks/databases.rake
metasploit-credential-5.0.2 lib/tasks/databases.rake