Skip to content

Commit

Permalink
attempting to fix migrations
Browse files Browse the repository at this point in the history
wierdness around db migrations
  • Loading branch information
David Maloney authored and David Maloney committed May 11, 2016
1 parent 91c854a commit 3a9bd59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/databases.rake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ 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::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

0 comments on commit 3a9bd59

Please sign in to comment.