Merged r4013 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@4025 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class EnableCalendarAndGanttModulesWhereAppropriate < ActiveRecord::Migration
|
||||
def self.up
|
||||
EnabledModule.find(:all, :conditions => ["name = ?", 'issue_tracking']).each do |e|
|
||||
EnabledModule.create(:name => 'calendar', :project_id => e.project_id)
|
||||
EnabledModule.create(:name => 'gantt', :project_id => e.project_id)
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
EnabledModule.delete_all("name = 'calendar' OR name = 'gantt'")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user