Commit a8796aa121fb7c2169db4de2024337d9f634b071
1 parent
e80229fa
Exists in
master
and in
29 other branches
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,7 +2,7 @@ ActiveRecord::SchemaDumper.ignore_tables << /_plugin_/ | ||
2 | 2 | ||
3 | namespace :noosfero do | 3 | namespace :noosfero do |
4 | namespace :plugins do | 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 | task :migrate do | 6 | task :migrate do |
7 | plugin_migration_dirs.each do |path| | 7 | plugin_migration_dirs.each do |path| |
8 | ActiveRecord::Migrator.migrate(path, ENV["VERSION"] ? ENV["VERSION"].to_i : nil) | 8 | ActiveRecord::Migrator.migrate(path, ENV["VERSION"] ? ENV["VERSION"].to_i : nil) |