Commit 401fd69d8722e2b4ef1ad58492c970b5ab1c816d
1 parent
b5053afb
Exists in
master
and in
22 other branches
Only require running migrations from enabled plugins
(ActionItem2147)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/tasks/plugins.rake
1 | 1 | namespace :noosfero do |
2 | 2 | namespace :plugins do |
3 | - plugin_migration_dirs = Dir.glob(File.join(Rails.root, 'plugins', '*', 'db', 'migrate')) | |
3 | + plugin_migration_dirs = Dir.glob(File.join(Rails.root, 'config', 'plugins', '*', 'db', 'migrate')) | |
4 | 4 | task :migrate do |
5 | 5 | plugin_migration_dirs.each do |path| |
6 | 6 | ActiveRecord::Migrator.migrate(path, ENV["VERSION"] ? ENV["VERSION"].to_i : nil) | ... | ... |