blob: 5bee50e3a81aae7349bb091fd0865c302ae52d37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
class EnableCalendarAndGanttModulesWhereAppropriate < ActiveRecord::Migration
def self.up
EnabledModule.where(: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
|