Commit a8796aa121fb7c2169db4de2024337d9f634b071

Authored by Joenio Costa
1 parent e80229fa

Run all plugins migration when migrating database, even if plugin is disabled

It's needed to avoid problems with Noosfero installed via Debian package
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/tasks/plugins.rake
... ... @@ -2,7 +2,7 @@ ActiveRecord::SchemaDumper.ignore_tables << /_plugin_/
2 2  
3 3 namespace :noosfero do
4 4 namespace :plugins do
5   - plugin_migration_dirs = Dir.glob(File.join(Rails.root, 'config', 'plugins', '*', 'db', 'migrate'))
  5 + plugin_migration_dirs = Dir.glob(File.join(Rails.root, 'plugins', '*', 'db', 'migrate'))
6 6 task :migrate do
7 7 plugin_migration_dirs.each do |path|
8 8 ActiveRecord::Migrator.migrate(path, ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
... ...