diff --git a/db/migrate/068_create_enabled_modules.rb b/db/migrate/068_create_enabled_modules.rb index fd848ef96..566ba1222 100644 --- a/db/migrate/068_create_enabled_modules.rb +++ b/db/migrate/068_create_enabled_modules.rb @@ -5,7 +5,7 @@ class CreateEnabledModules < ActiveRecord::Migration t.column :name, :string, :null => false end add_index :enabled_modules, [:project_id], :name => :enabled_modules_project_id - + # Enable all modules for existing projects Project.find(:all).each do |project| project.enabled_module_names = Redmine::AccessControl.available_project_modules